aboutsummaryrefslogtreecommitdiff
path: root/backends/mixer
AgeCommit message (Collapse)Author
2019-11-30AUDIO: Remove unused parameter from the MixerImpl constructorCameron Cawley
2019-11-17BACKENDS: Remove the Windows CE portCameron Cawley
2019-05-12SWITCH: add nintendo switch supportCpasjuste
2019-04-15WINCE: Fix compilationCameron Cawley
2017-09-12SDL: Remove code for unused DoubleBufferSDLMixerManagerThierry Crozat
2017-09-12SDL: Fix DoubleBufferSDLMixerManager doubling audio latencyColin Snover
If it turns out that everything that had previously been fixed by this manager is broken by this change, everything that had been fixed probably could have been fixed by just increasing the audio buffer size in SdlMixerManager. :\
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-15PS3: Remove the SDL2 mixer manager.Bastien Bouclet
It was only used by the PS3 backend, and the standard SDL mixer was fixed to work in the PS3 case.
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-12-15PS3: Make use of an updated SDL2 versionBastien Bouclet
This version, available at https://bitbucket.org/bgK/sdl_psl1ght, is based on SDL 2.0.3.
2015-03-06SDL: Special case the call to SDL_CreateThread for SDL2, since SDL2 requires ↵Einar Johan Trøan Sømåen
threads to be named. - Fixes compilation on OS X with SDL2 enabled, SDL1 builds should be entirely unaffected.
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-22PS3: Default to 44kHz sound output.Johannes Schickel
2014-06-22SDL: Default to 44kHz sound output.Johannes Schickel
2014-02-18WINCE: Make GPL headers consistent in themselves.Johannes Schickel
2014-02-18SYMBIAN: Make GPL headers consistent in themselves.Johannes Schickel
2014-02-18SDL: Make GPL headers consistent in themselves.Johannes Schickel
2014-02-18PS3: 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-05-17RECORDER: Implement Events RecorderEugene Sandulenko
2013-01-24JANITORIAL: Fix ){ -> ) {Einar Johan Trøan Sømåen
2012-09-26JANITORIAL: Remove trailing whitespaces.Johannes Schickel
Powered by: git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2012-03-17ALL: Make use of defined() for the preprocessor consistent.Johannes Schickel
This does not change the use of defined for some NDS source files, since they seem to be (based on?) third party code.
2011-08-07JANITORIAL: Remove trailing empty lines.Christoph Mallon
2011-07-15WINCE: Change default values for "FM_high_quality" & "high_sample_rate"CeRiAl
Changed the default values from "false" to "true" as current devices are fast enough to handle this. It's still possible to change the values to "false" if the device isn't fast enough.
2011-06-22PS3: Add a SDL 1.3 mixer, for use with the PS3 backend.Bastien Bouclet
SDL 1.3 allows converting from the S16SYS sound format to F32MSB, which is required by the PS3.
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: Fix Compilation.D G Turner
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-29WINCE: Fix Mixer Compilation after header changes.D G Turner
2011-04-28JANITORIAL: Reduce header dependencies in shared codeOri Avtalion
Some backends may break as I only compiled SDL
2011-04-22WINCE: Add Tremolo supportdhewg
2011-04-19BACKENDS: Fix compilation for Caanoo and GP2xWiz.Johannes Schickel
2011-03-08WINCE: Make scummvm compile and run again for WinCE platform (patch #3202337)Max Horn
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