aboutsummaryrefslogtreecommitdiff
path: root/backends/mixer/sdl
AgeCommit message (Collapse)Author
2020-01-11Default gcw0 back to adlib emulator due to high CPU cost of fluidsynth.craigsc
I'm leaving fluidsynth in the build because the quality is higher and it does technically work and feel good on several games. Added back in MAD support for MP3 playback for CD-based music tracks on games like Monkey Island 1 - the auto-detection seems to not work correctly for gcw0. Default mixer sampling rate to 48000 due to device driver limitations (this should lower CPU cost since anything other than 48k gets re-sampled)
2019-11-30AUDIO: Remove unused parameter from the MixerImpl constructorCameron Cawley
2019-05-12SWITCH: add nintendo switch supportCpasjuste
2017-09-12SDL: Reduce audio playback latencyColin Snover
The previous default buffer size of 4096 samples for 44kHz mixer would add up to 93ms of audio latency, which is fine for early adventure games, but this is significantly more latency than is acceptable for games with full motion video. For these games, the latency needs to be kept within roughly +15ms and -45ms of video frame presentation to avoid lip sync problems. With this change, the default audio buffer size is calculated to be 1024 samples at 44kHz (which happens to match what DOSBox uses). There is a possibility that the reduced latency may cause issues that did not previously exist with things like the MT-32 emulator, where a larger buffer size allowed for a larger window where high-complexity synthesis that could not be generated in realtime could be balanced out by low-complexity synthesis that could be generated faster than realtime. In this case, rather than increasing the system mixer buffer size again, please move the MT-32 emulator into its own thread and give it its own larger ring buffer into which it can generate more sample data in advance, independently from the rest of the audio system. For other systems where this buffer size reduction might cause a problem with audio drop-outs, a new audio_buffer_size configuration option has been added to allow users to tweak the audio buffer size to match their machine's ability to generate audio samples. Fixes Trac#10033. Also improves playback of samples in SCI that were programmed to restart across several consecutive frames, relying on lower audio latency in the original engine for this to not sound bad, like the hopping sound at the start of chapter 1 of KQ7, and the sound of turning on the power in the digger train in the Lighthouse volcano.
2017-09-12GUI: Remove mostly-broken audio output sample rate controlColin Snover
Removing this GUI control was suggested as far back as 2011 at <http://lists.scummvm.org/pipermail/scummvm-devel/2011-November/010416.html>. There were no objections, but it was never removed. When working on audio latency bugs, I independently rediscovered that the GUI option was broken: the per-game options would *never* work, and the option would not take effect until ScummVM was restarted because there is no API for interacting with the backend audio mixer. So now, it is finally gone. Primarily for the sake of future troubleshooting, configurability of the audio sample frequency within SdlMixerManager is maintained for the moment, but now users will need to edit their ScummVM configuration file manually to change it.
2017-03-04PSP2: Add Playstation Vita (PSP2) supportcpasjuste
2015-12-15PS3: Set the default audio output rate to 48000 HzBastien Bouclet
SDL does an awful job at resampling 44100 -> 48000 Hz
2015-12-15SDL: Ensure the audio sample format is supportedBastien Bouclet
When SDL returns an unsupported audio sample format, ask SDL to do resampling to the one ScummVM expects. This is needed for the PS3 which natively only supports 32 bits floating point as a sample format.
2015-01-25SDL: Also print audio driver used when built with SDL2.Johannes Schickel
2015-01-25SDL: Add experimental support for SDL2.Johannes Schickel
This is based upon skristiansson's change set to make ScummVM work with SDL2.
2014-06-22SDL: Default to 44kHz sound output.Johannes Schickel
2014-02-18SDL: Make GPL headers consistent in themselves.Johannes Schickel
2014-02-17SDL: Revert add warning if "waveout" driver is being used for audio.Kirben
This situation was only caused by a buildbot issue, and the relevant information has been added to the FAQ on the ScummVM web site.
2014-02-14SDL: Add warning if "waveout" driver is being used for audio.D G Turner
This will help avoid bug reports like #6510 - "SDL: Audio delay in daily builds" in future.
2014-02-12SDL: Add debugging code to output SDL audio driver name being used.D G Turner
This is to aid with investigation of bug #6510 - "SDL: Audio delay in daily builds" and similar future issues.
2013-01-24JANITORIAL: Fix ){ -> ) {Einar Johan Trøan Sømåen
2011-06-20ALL: Remove trailing whitespacesMax Horn
This tries to make our code a bit more compliant with our code formatting conventions. For future use, this is the command I used: git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-17BACKENDS: Mono output devices are OK on Symbian.Alyssa Milburn
2011-06-14BACKENDS: Improve SDL Mixer Output Format Checks and Reporting.D G Turner
This commit corrects a number of minor issues and adds warnings for when the desired output parameters given to SDL_OpenAudio() don't match the obtained.
2011-05-31BUILD: Add SDL_BACKEND=1 to config.mk for all SDL based backendsMax Horn
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-04-28JANITORIAL: Reduce header dependencies in shared codeOri Avtalion
Some backends may break as I only compiled SDL
2011-02-09AUDIO: Rename sound/ dir to audio/Max Horn
svn-id: r55850
2010-11-29SDL: Move #include <SDL.h> into a special wrapper fileMax Horn
svn-id: r54572
2010-11-28SYMBIAN: Fixes & improvements for SymbianSdlMixerManager (untested)Max Horn
svn-id: r54519
2010-08-12SDL: Make use of SDL_BACKEND instead of platform specific defines.Alejandro Marzini
svn-id: r52029
2010-08-01SYMBIAN platform. Correct building of SDL refacturing for Symbian.Lars Persson
svn-id: r51587
2010-07-03Cleanup and documentation.Alejandro Marzini
svn-id: r50609
2010-07-01Modularized GP2X backend. Renamed GP2XWIZSdlEventManager to ↵Alejandro Marzini
GP2XSdlEventManager, and added GP2X code. svn-id: r50542
2010-06-29Modularized Linuxmoto port.Alejandro Marzini
svn-id: r50474
2010-06-24Made destructor virtual.Alejandro Marzini
svn-id: r50199
2010-06-24Refactored SDL mixer manager. Created a SdlMixerManager subclass for Mac OSX.Alejandro Marzini
svn-id: r50198
2010-06-23Fixed AudioCDManager not having a public inheritance. Backend code cleanup.Alejandro Marzini
svn-id: r50189
2010-06-20Made _sampleRate constant again in Audio::MixerImpl. (And Committing ↵Alejandro Marzini
"common/timer.h" that should have been included in r50095) svn-id: r50097
2010-06-12Created SdlMixerImpl. Added setSampleRate method to Audio::MixerImpl. ↵Alejandro Marzini
Updated and removed mixer code in OSystem_SDL for using SdlMixerImpl. svn-id: r49602