summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon/OpenALStream.cpp
AgeCommit message (Collapse)Author
2025-05-30AudioCommon: Remove unused qualifiers and make variables constantDr. Dystopia
2025-03-14AudioCommon: Added Granular SynthesisSam Belliveau
2021-12-10Treewide: Adjust order of includesPokechu22
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-08-08AudioCommon: rename isValid() to IsValid()Tillmann Karras
2021-08-08AudioCommon: get rid of Update(), it never does anythingTillmann Karras
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.
2020-11-27AudioCommon: Convert alerts over to fmt-based variantsLioncash
Continues the migration over to fmt Converts two panic alerts into error logs, since they aren't really things a user can do anything about.
2020-10-21AudioCommon: Migrate logging over to fmtLioncash
printf specifiers, begone!
2019-11-11Centralize logic to detect when the DPL2 decoder should be used.LAGonauta
2019-10-22DSP must be set to LLE to select the decoderLAGonauta
2019-02-13Removed zeroing-out the LFE as it is not needed anymore.LAGonauta
Also removed minimum number of frames needed when decoding DPL2, and use std::numeric_limits to clamp the samples when needed. Clamping is still needed, but those samples are much rarer now and depend on the game.
2017-11-19SoundStream: change Start/Stop to Init/SetRunning/destructMichael M
2017-10-21SoundStream: rename Clear(mute) to SetRunning(running)Michael M
2017-10-21SoundStream: remove unused m_muted and IsMutedMichael M
2017-06-27Swapped C-style arrays to std::arrayLAGonauta
Also changed C-Style casts to static_cast
2017-06-27Removed redundant conversion to float when playing back stereo.LAGonauta
2017-06-27Swapped out the sound_sync_event.Wait() call by a simple std::sleep_for.lfsafady
It seems to make no difference besides allowing lower latencies and more stability on hardware OpenAL cards. Maybe the Wait() call waits for too long, causing buffers underruns.
2017-06-27Renamed some variables to the current coding standard and some to betterlfsafady
fit what they really are.
2017-06-27Changed OpenAL latency setting to really reflect how much time it is.LAGonauta
Before these changes each value of latency were actually 5ms, with a minimum latency of ~10 ms. If it was set to 4 ms on the UI, the actual latency was 10 + 5 * 4 = 30 ms. Now 30 ms on the UI means 30 ms on the backend.
2017-06-27OpenALStream: remove commented-out ALC_REFRESH codeMichael Maltese
2017-06-27OpenAL: load DLL dynamicallyMichael Maltese
2017-06-27Only build OpenAL on WindowsMichael Maltese
2017-06-27OpenAL: remove aldlist.cppMichael Maltese
2017-06-27clean up OpenALStream::Start()Michael Maltese
2017-06-27OpenALStream: don't include headers if not buildingMichael Maltese
2017-06-06OpenAL: hardcode that X-Fi supports surroundMichael Maltese
2017-06-06Fix OpenAL backend on macOSMichael Maltese
OpenALStream was querying the backend for AL_EXT_float32 support (which suceeds), but AL_FORMAT_STEREO_FLOAT32 was defined incorrectly. Also changes OpenALStream to query for AL_EXT_MCFORMATS (multichannel support) rather than hard-coding that it doesn't work on macOS.
2017-06-03AudioCommon: move DPL2 decoding into MixerMichael Maltese
2017-04-12OpenALStream: Remove audio stretchingMerryMage
2017-01-24Fix missing includesFlorent Castelli
2016-10-27Added 32-bit fixed point support to OpenAL backend.LAGonauta
Changed method to detect 32-bit floating point and 32-bit fixed point support.
2016-10-07Fix missing includesLéo Lam
Aren't indirect includes great?
2016-10-04Fix for false error about unqueuing buffers (OpenAL)LAGonauta
and hopefully added saner error reporting.
2016-10-02Merge pull request #4271 from ligfx/audiofixshuffle2
OpenAL: Don't request samples if buffers are full
2016-10-01fix indendentationMichael Maltese
2016-10-01OpenAL: Don't request samples if buffers are fullMichael Maltese
Makes the buffering code a bit more explicit (circular buffer, but blocks until individual buffers get unqueued by OpenAL), and fixes a bug in the startup of Super Mario Sunshine: https://bugs.dolphin-emu.org/issues/9811
2016-10-01Reorganise a ton of logs levelaldelaro5
Most of this commits changes performance decreasing logs from info to debug and also cleans up innacurate levels.
2016-08-10Use Common::Flag and Common::Event when possibleLéo Lam
Replaces old and simple usages of std::atomic<bool> with Common::Flag (which was introduced after the initial usage), so it's clear that the variable is a flag and because Common::Flag is well tested. This also replaces the ready logic in WiimoteReal with Common::Event since it was basically just unnecessarily reimplementing Common::Event.
2016-06-24Reformat all the things. Have fun with merge conflicts.Pierre Bourdon
2015-12-28Updated SoundTouch library to 1.9.2skidau
2015-09-28Fix building with PCH disabled.Rohit Nirmal
2015-09-26Common: Remove other Common prefixed headers from Common.hLioncash
2015-09-11Added X-Fi check and convert surround FLOAT to SHORT when it is detectedLAGonauta
Fixed braces, first try fixing mac compilation and removed useless NULL comparison.
2015-06-27Merge pull request #2659 from Armada651/openal-convJules Blok
OpenALStream: Fix sample conversion.
2015-06-25OpenALStream: Fix sample conversion.Jules Blok
Looks like it wasn't symmetric anymore.
2015-06-12Options: merge SCoreStartupParameter into SConfigdegasus
2015-05-25Set copyright year to when a file was createdTillmann Karras
2015-05-25Update license headers to GPLv2+Tillmann Karras
2015-05-10AudioCommon: Migrate threadData to OpenALStream and AOSoundStreamLioncash
This is only ever used in these two sound streams. Seems silly to have it as a class member. Converted it to an atomic as well.