summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon/AudioCommon.cpp
AgeCommit message (Collapse)Author
2026-03-23AudioCommon: Use left const for non-pointer variablesDentomologist
2025-06-08Merge pull request #13727 from JoshuaVandaele/fmt-11.2.0-localtime-deprecTilka
fmt: Replace deprecated `fmt::localtime` usage with `Common::LocalTime`
2025-06-04fmt: Replace deprecated `fmt::localtime` usage with `Common::LocalTime`Joshua Vandaële
2025-05-30AudioCommon: Remove unused qualifiers and make variables constantDr. Dystopia
2025-04-21AudioCommon: Make cubeb sound backend default on Linux.Jordan Woyak
2025-01-25CMakeLists: Add flag to disable CubebOatmealDome
2024-04-16AudioCommon: When ALSA is absent on Linux, default to Cubeb backendDentomologist
Default to Cubeb instead of the NULL backend on Linux when ALSA isn't valid.
2024-04-14Set default sound backend on OpenBSD to cubebBrad Smith
Set the default sound backend to cubeb instead of the default being none.
2022-11-06AudioCommon: Pass Core::System to AudioCommon functions.Admiral H. Curtiss
2022-08-31AudioCommon: Move sound stream variables to Core::System.Admiral H. Curtiss
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