summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon/Mixer.cpp
AgeCommit message (Collapse)Author
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-11Mixer: Convert volatile variables to atomics.Lioncash
2015-02-23Revert "High quality resampler"Markus Wick
2015-02-18High Quality Resampler, using FIR filterkamiyo
For more information: https://docs.google.com/document/d/1tBEgsJh7QiwNwepXI0eobfK3U8LkJButSyeuFt1degM/edit?usp=sharing removed: SSE includes (not used) added: 16bit -> float -> 16bit functions added: linear interpolator and high-quality (windowed-sinc) interpolator functions (including Resampler class) added: dithering changed: renamed variables and reformatted a few things to fit with style guide (braces, #include->const) changed: use s16, u16, s32, u32 etc changed: store samples and do all computations as floats changed: volume from 0 - 255
2015-01-24Clean UpBenjamin Przybocki
2014-10-09Proper Audio/Video DumpingFog
2014-09-07Route the wiimote speaker to the sound mixer (the host system's speakers). ↵skidau
Emulated Wiimote speaker sounds will go to the host system's speakers. Real Wiimotes will continue to use their own speaker for Wiimote speaker sounds. All Wiimote speaker sound can be disabled by unchecking the "Enable Speaker Data" option. Each emulated Wiimote can have its speaker routed from left to right via the "Speaker Pan" setting in the emulated wiimote settings dialog. Use any value from -127 for leftmost to 127 for rightmost with 0 being the centre. Added code in the InputConfig to use a spin control for non-boolean values. Defaulted the setting of "Enable Speaker Data" to disabled.
2014-09-07Hooked up the emulated Wiimote speaker.skidau
The Wiimotes are positioned as follows: Wiimote 0 = Center Wiimote 1 = Left Wiimote 2 = Right Wiimote 3 = Center The Wiimote speaker output can be disabled via the "Enable Speaker Data" checkbox in the Wiimote settings.
2014-08-30AudioCommon: Clean up brace placementsLioncash
2014-07-28Merge pull request #667 from RachelBryk/remove-audio-limitTony Wasserka
Remove audio frame limit.
2014-07-25Remove audio frame limit.Rachel Bryk
It serves no purpose and causes bugs and confusion for users.
2014-07-24AudioCommon/Mixer: Allow input sample rate changesbooto
2014-07-17Correct left/right volume for padded samples.Scott Mansell
2014-07-17Audio Mixer: move Static variable to a member variable.Scott Mansell
The two instances of this class were sharing a frac variable causing audio glitches when both were running (which is now all the time). Fixes issue 7463 (Since DTK merge, audio has staic in it).
2014-07-07Revert "Don't add segfault handler in interpreter mode"Pierre Bourdon
2014-07-05enum CPUState: rename CPU_* to STATE_*Tillmann Karras
2014-06-26AudioCommon: restore support for DTK volume setting.magumagu
2014-06-15Audio mixer: fix a couple compiler warnings.magumagu
2014-06-15Audio mixer: remove check for ratio > 1.0.magumagu
The code actually handles this case correctly; the algorithm is linear interpolation between the two closest samples, and the way it is written should work correctly with any ratio.
2014-06-14Rewrite handling of DTK (streaming) audio.magumagu
The primary motivation here is to make sure we submit samples from the CPU thread. This makes sure the timing of related interrupts accurate, and generally keeps the different kinds of audio synchronized. This will also allow improvements to audio dumping functionality. The new code is also more concise because it gets rid of some duplicated audio mixing code.
2014-04-30Add set/get functions for IsFramelimiterTempDisableddegasus
2014-04-30Add a hotkey for disabling the framelimit.degasus
Atm this is hardcoded to '\t'.
2014-03-26Delete a bunch of old audio HLE cruft.magumagu
This commit intentionally breaks audio output from HLE Zelda UCode; no other functional change.
2014-03-11Fixes spacing for "for", "while", "switch" and "if"Matthew Parlane
Also moved && and || to ends of lines instead of start. Fixed misc vertical alignments and some { needed newlining.
2014-02-18Convert all includes to relative paths.Lioncash
2014-02-13Disable framerate correction for OpenALdegasus
OpenAL itself stretch the time on slowdowns, so the Mixer isn't allowed also to change the rate.
2014-02-11change AI sampling rate based on framelimitdegasus
2014-02-11controll the interpolation frac by the fifo sizedegasus
2014-02-11audiocommon: sync mixer by fifo instead of estimate valuesdegasus
2014-02-11audiocommon: remove 1:1 interpolationdegasus
The usual one is 32->48 khz interpolation. So there is no need in a special 1:1 interpolation only for performance.
2013-12-31Remove unnecessary Src/ foldersJasper St. Pierre