summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon/AudioCommon.cpp
AgeCommit message (Collapse)Author
2021-11-07Merge pull request #10169 from leoetlino/fmt-localtimeMai M
Use fmt::localtime instead of thread-unsafe std::localtime
2021-10-16Merge pull request #10144 from malleoz/dsp-onionLéo Lam
Port Main.DSP to MainSettings
2021-10-15Port Main.DSP to MainSettingssowens99
While trying to work on adding audiodump support for CLI, I was alerted that it was important to first try moving the DSP configs to the new config before continuing, as that makes it substantially easier to write clean code to add such a feature. This commit aims to allow for Dolphin to only rely on the new config for DSP-related settings.
2021-10-15Use fmt::localtime instead of thread-unsafe std::localtimeLéo Lam
fmt::localtime is also less awkward to use compared to std::localtime.
2021-10-03Add timecode to dspdump and dtkdumpsowens99
Match the same formatting present in framedump filenames.
2021-08-08AudioCommon: rename isValid() to IsValid()Tillmann Karras
2021-08-08AudioCommon: get rid of Update(), it never does anythingTillmann Karras
2021-07-13SI: Implement GBAEmu deviceBonta
2021-07-05treewide: convert GPLv2+ license info to SPDX tagsPierre Bourdon
SPDX standardizes how source code conveys its copyright and licensing information. See https://spdx.github.io/spdx-spec/1-rationale/ . SPDX tags are adopted in many large projects, including things like the Linux kernel.
2021-03-24AudioCommon: Initialize before HWBonta-kun
2020-10-21AudioCommon: Migrate logging over to fmtLioncash
printf specifiers, begone!
2020-09-06AudioCommon: Get initial sample rates from AudioInterfaceJosJuice
2019-10-22Allow user to change DPLII decoding qualityLAGonauta
2019-10-10AudioCommon: Don't forget to call Init() on fallbackStenzek
2019-09-14AudioCommon: if backend is unknown, use default backendMichael M
2019-09-14Remove XAudio2Michael M
Audio on Windows is provided by the cubeb (shared mode) and WASAPI (exclusive mode) backends, both of which exhibit lower latency.
2019-05-31AudioCommon: Move static locals into the AudioCommon namespaceLioncash
Given these are locals, they can be moved out of the global namespace. While we're at it, turn the constants below it into constexpr variables.
2019-05-31AudioCommon: Use emplace_back instead of push_back in GetSoundBackends()Lioncash
Constructs the strings directly within the container instead of performing a construction, then a copy. The reasoning is that the BACKEND_* strings are const char arrays, so the push_back code is equivalent to: push_back(std::string(BACKEND_WHATEVER)) instead of forwarding the arguments to a constructed instance directly in the container.
2019-05-31AudioCommon: Use std::string_view with feature querying functionsLioncash
Provides the same behavior, but allows passed in strings to be non-allocating in calling code.
2019-05-11Set Cubeb as default on WindowsMiksel12
Cubeb and Xaudio2 are identical in features while Cubeb has lower latency and is still actively being worked on.
2019-03-18Allow XAudio2 to be selected as a surround backend.LAGonauta
2018-05-26AudioCommon: Implement WASAPIspycrab
2017-11-19AudioCommon: make SetSoundStreamRunning idempotentMichael M
2017-11-19SoundStream: change Start/Stop to Init/SetRunning/destructMichael M
2017-10-21SoundStream: rename Clear(mute) to SetRunning(running)Michael M
2017-10-21AudioCommon: rename ClearAudioBuffer(mute) to SetSoundStreamRunning(running)Michael M
2017-06-29Remove CoreAudio audio backendMichael Maltese
Cubeb handles everything the CoreAudio backend can, plus supports DPL2.
2017-06-26Rename CMixer to MixerMichael Maltese
2017-05-27AudioCommon: add Cubeb backendMichael Maltese
2017-04-20AudioCommon: set volume _after_ starting streamMichael Maltese
Fixes an error with the CoreAudio backend, which apparently doesn't allow you to set the volume before starting the stream: ``` 59:31:087 AudioCommon/CoreAudioSoundStream.cpp:97 E[Audio]: error setting volume ``` This shouldn't cause any problems with other backends, since the mixer starts with silence anyways.
2017-03-31Remove libao sound backendMichael Maltese
A single person uses it[0], and it sometimes messes up the Linux buildbots ("ninja: error: 'ao', needed by 'Binaries/dolphin-emu', missing and no known rule to make it"). [0]: https://analytics.dolphin-emu.org/stats/popular-audio-backends.txt
2017-02-08Fix default audio backend on Android being "No audio output"JosJuice
People who already have encountered the problem will need to manually change the audio backend (or delete the config INI).
2017-02-05AudioCommon: Move logic for default sound backend there from ConfigManagerFlorent Castelli
This way, we don't have to leak the HAVE_ALSA define there.
2017-02-05AudioCommon: Remove checks against NullSound::isValid()Florent Castelli
The NullAudio backend is guaranteed to be compiled in, so no reason to check it. In addition to that, if it wasn't valid, it wouldn't work as a fallback in InitSoundStream as there are uses to g_sound_stream later.
2016-12-11AudioCommon: Remove unnecessary headersLioncash
Now AudioCommon code won't need to be recompiled if the TAS movie header is ever modified.
2016-10-09AudioCommon: SupportsDPL2Decoder, SupportsLatencyControl, SupportsVolumeChangesMichael Maltese
2016-07-31AudioCommon: const correctnessLioncash
2016-07-31AudioCommon: Make the SoundStream global a unique_ptrLioncash
2016-06-24Reformat all the things. Have fun with merge conflicts.Pierre Bourdon
2015-09-28Fix building with PCH disabled.Rohit Nirmal
2015-09-26Common: Remove other Common prefixed headers from Common.hLioncash
2015-08-10Merge pull request #2825 from lioncash/logMarkus Wick
AudioCommon: Log to AUDIO, not DSPHLE
2015-08-10Use dummy audio backend if the selected backend fails to startMoncef Mechri
If the selected audio backend fails to Start() (which could happen for example if there is no audio device), we currently still use the backend anyway. This can lead to crashes on some platforms (such as Windows) and is outright wrong anyway. This commit fallbacks to the Null audio backend if the selected backend couldn't be started. This fixes bug #6001
2015-08-09AudioCommon: Log to AUDIO, not DSPHLELioncash
This code is not related to DSPHLE.
2015-05-28AudioCommon: Remove lock on Pause statedegasus
We had to lock audiocommon with the old asynchron HLE audio emulation, now our Mixer is just a plain FIFO which may underrun. Of course, this will stutter, but underruning the audio backend is likely worse.
2015-05-25Set copyright year to when a file was createdTillmann Karras
2015-05-25Update license headers to GPLv2+Tillmann Karras
2015-05-24SoundStream: Internally construct the mixerLioncash
Instead of creating the mixer externally and then passing it in, it can just be made within the class.
2014-12-28Issue 7968: Added keybinds for increasing, decreasing, and muting audio.FL.dolphinemu
2014-10-15Start/Stop Audio Dump During EmulationFog