summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon
AgeCommit message (Collapse)Author
2018-05-26AudioCommon: Implement WASAPIspycrab
2018-04-12Reformat all the things!spycrab
2018-03-22AudioCommon/CMakelists: Migrate off add_dolphin_libraryLioncash
Continues the changes that were introduced in 3a4c3bbe01e7a44ec997f4fbf0b678fba6f2d46c
2018-03-14Assert: Uppercase assertion macrosLioncash
Macros should be all upper-cased. This is also kind of a wart that's been sticking out for quite a while now (we avoid prefixing underscores).
2018-03-09Change FATAL_ERROR to STATUS message for OpenAL not found in externalsRyan Meredith
2017-11-19AudioCommon: make SetSoundStreamRunning idempotentMichael M
2017-11-19SoundStream: change Start/Stop to Init/SetRunning/destructMichael M
2017-11-19CubebStream: implement SetRunningMichael M
2017-11-06Fix DTK audio not working after loading a savestateJosJuice
The main problem was that the volume of the mixer wasn't savestated. The volume is typically 0 at the beginning of a game, so loading a savestate at the beginning of a game would lead to silent DTK audio. I also added savestating to StreamADPCM.cpp.
2017-10-24Merge pull request #6130 from ligfx/emptynullsoundstreamLeo Lam
NullSoundStream: don't call Mixer->Mix
2017-10-22Merge pull request #6132 from ligfx/updatecubebLeo Lam
Externals: update cubeb to kinetiknz/cubeb@c2bd582
2017-10-21SoundStream: rename Clear(mute) to SetRunning(running)Michael M
2017-10-21AudioCommon: rename ClearAudioBuffer(mute) to SetSoundStreamRunning(running)Michael M
2017-10-21SoundStream: remove unused m_muted and IsMutedMichael M
2017-10-21Externals: update cubeb to kinetiknz/cubeb@c2bd582Michael M
A bunch of changes, looks mainly like bug fixes and code cleanup. Notable changes: - `cubeb_get_min_latency`'s signature was changed to take params via pointer, requiring Dolphin code to be tweaked in two places. - A fix for kinetiknz/cubeb#320, as reported by @shuffle2 - Fixed build on FreeBSD (kinetiknz/cubeb#344), as contributed by @endrift
2017-10-21NullSoundStream: don't call Mixer->MixMichael M
2017-08-22Remove NonCopyableJosJuice
The class NonCopyable is, like the name says, supposed to disallow copying. But should it allow moving? For a long time, NonCopyable used to not allow moving. (It declared a deleted copy constructor and assigment operator without declaring a move constructor and assignment operator, making the compiler implicitly delete the move constructor and assignment operator.) That's fine if the classes that inherit from NonCopyable don't need to be movable or if writing the move constructor and assignment operator by hand is fine, but that's not the case for all classes, as I discovered when I was working on the DirectoryBlob PR. Because of that, I decided to make NonCopyable movable in c7602cc, allowing me to use NonCopyable in DirectoryBlob.h. That was however an unfortunate decision, because some of the classes that inherit from NonCopyable have incorrect behavior when moved by default- generated move constructors and assignment operators, and do not explicitly delete the move constructors and assignment operators, relying on NonCopyable being non-movable. So what can we do about this? There are four solutions that I can think of: 1. Make NonCopyable non-movable and tell DirectoryBlob to suck it. 2. Keep allowing moving NonCopyable, and expect that classes that don't support moving will delete the move constructor and assignment operator manually. Not only is this inconsistent (having classes disallow copying one way and disallow moving another way), but deleting the move constructor and assignment operator manually is too easy to forget compared to how tricky the resulting problems are. 3. Have one "MovableNonCopyable" and one "NonMovableNonCopyable". It works, but it feels rather silly... 4. Don't have a NonCopyable class at all. Considering that deleting the copy constructor and assignment operator only takes two lines of code, I don't see much of a reason to keep NonCopyable. I suppose that there was more of a point in having NonCopyable back in the pre-C++11 days, when it wasn't possible to use "= delete". I decided to go with the fourth one (like the commit title says). The implementation of the commit is fairly straight-forward, though I would like to point out that I skipped adding "= delete" lines for classes whose only reason for being uncopyable is that they contain uncopyable classes like File::IOFile and std::unique_ptr, because the compiler makes such classes uncopyable automatically.
2017-06-29Remove CoreAudio audio backendMichael Maltese
Cubeb handles everything the CoreAudio backend can, plus supports DPL2.
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-26Rename CMixer to MixerMichael Maltese
2017-06-15Move IOFile to a separate fileJosJuice
Reduces the number of files that need to be recompiled when making changes to FileUtil.h.
2017-06-07msbuild: obey some warnings about missing virtual destructorsShawn Hoffman
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-05Merge pull request #5311 from ligfx/mixerdpl2shuffle2
AudioCommon: Move DPL2 decoding into Mixer
2017-06-03might as well update yet some more pointless version numbers..Shawn Hoffman
2017-06-03AudioStretcher: split StretchAudio into ProcessSamples / GetStretchedSamplesMichael Maltese
2017-06-03AudioCommon: extract AudioStretcher class for time-stretchingMichael Maltese
2017-06-03AudioCommon: move DPL2 decoding into MixerMichael Maltese
2017-05-28upgrade to Windows SDK 10.0.15063.0BhaaL
this is required for /permissive- to work, because some headers in the Windows SDK use Microsoft extensions that are not allowed in standards mode
2017-05-27CubebStream: Add missing <vector> includeLioncash
2017-05-27Add CubebUtils namespace and hook up cubeb loggingMichael Maltese
2017-05-27AudioCommon: add Cubeb backendMichael Maltese
2017-05-25Migrate to Visual Studio 2017.Pierre Bourdon
Auto-generated by the IDE, I'll trust it knows what it's doing.
2017-04-23DPL2Decoder: Prefer static_cast to C-style castsMerryMage
2017-04-23DPL2Decoder: Simplify DotProductMerryMage
2017-04-23DPL2Decoder: Prefer std::vector to calloc-ed arrayMerryMage
2017-04-23DPL2Decoder: Make constant variables const in DesignFIRMerryMage
2017-04-23DPL2Decoder: Simplify cut-off frequency logic in DesignFIRMerryMage
2017-04-23DPL2Decoder: Reduce scope of variable in DesignFIRMerryMage