15 Commits
Author SHA1 Message Date
Ghabry fa09f8923e WiiU: Further fixes
- Fix OGG playback (Wii uses tremor, playback is fine)
- Prevent Fullscreen toggling via command when the setting is disabled

Allowing fullscreen toggling messes up the rendering on WiiU
2025-01-16 16:52:30 +01:00
Ghabry 425da58300 Cast the string constants to char* when tremor is used.
Fixes warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

Tremor never writes to the strings so this is safe to do.
2024-09-02 15:41:49 +02:00
Ghabry faea9ae0bd Ogg & Opus: Also support LOOPEND, a "standard" used outside of the RPG Maker world 2021-08-31 22:10:45 +02:00
Ghabry fa17880caa Fix looping when LOOPSTART is 0. non-numeric strings are handled as 0, like VX does it. 2021-08-31 22:10:45 +02:00
Ghabry a7e464bd9e OGG: Implement LOOPSTART and LOOPLENGTH
This uses the VX Ace version which loops when LOOPLENGTH is reached.
MV uses WebAudio which plays the entire track once and then respects loop start and length.
2021-08-31 22:10:45 +02:00
Ghabry 2b91cce542 Filesystem: Move stream implementation into Filesystem_Stream and use "move" instead of std::shared_ptr 2020-06-18 15:37:44 +02:00
Ghabry 6bc2517baf Fix rebase problems, debug messages, unused includes 2020-06-18 15:37:43 +02:00
Ghabry 0d1755a215 AudioDecoder: Make Seek and Tell match C++ stream API 2020-06-18 15:37:42 +02:00
Ghabry ce70e85930 Add Filesystem::Input/OutputStream and use it everywhere. Makes refactor easier later when the type is already correct. 2020-06-18 15:36:47 +02:00
Ghabry d70c8be4ff Fix compile of opus decoder and secache. Readd error check in audio decoder. 2020-06-18 15:36:47 +02:00
Christian Breitwieser eb3fd8b18f * Replaced std::istream by FileFinder::istream (which contains an additional filesize field)
* First charge of audio decoders and sdl audio are converted to use this stream
* Windows build is buildable - Linux not so as not all decoders are converted yet
2020-06-18 15:36:47 +02:00
Carsten Teibes 1077193055 Fix a warning in Ogg AudioDecoder 2020-02-06 00:02:14 +01:00
Ghabry a21542bd05 Implement Get MIDI Ticks for non-MIDI formats by returning the playback position in seconds.
Implemented for mpg123, libvorbisfile and libopusfile.
Works for EmptyAudio and SDLAudio by approximating it through the frame count.

When no BGM is playing the returned value is 0.

Fix #1517
2018-12-04 01:03:59 +01:00
Carsten Teibes b934df2f9e Clean up some audio_decoder stuff 2016-09-01 23:57:27 +02:00
Carsten Teibes 068d9273fa Add Ogg Vorbis audio decoder 2016-07-04 03:36:52 +02:00