21 Commits

Author SHA1 Message Date
Connor McLaughlin
47b390e356 AudioStream: Prevent buffering more frames than size 2021-07-03 14:29:08 +10:00
Connor McLaughlin
357235404a AudioStream: Fix a crash when opening device fails 2021-02-22 12:21:44 +10:00
Connor McLaughlin
51babf4009 AudioStream: Fix assertion failure in debug builds 2021-02-01 01:10:32 +10:00
Connor McLaughlin
35f8ea13d9 AudioStream: Prevent writing too many frames at once and hanging 2021-01-31 17:00:57 +10:00
Connor McLaughlin
4e583890ea AudioStream: Add option to wait until a full buffer is queued 2021-01-28 21:04:23 +10:00
Connor McLaughlin
6fbd970b55 Common/AudioStream: Fix race condition with resampling reset while reading 2021-01-16 02:56:04 +10:00
Connor McLaughlin
1ae4b94eb2 AudioStream: Don't hold lock while resampling 2021-01-13 19:25:15 +10:00
Connor McLaughlin
bc5fb850d4 AudioStream: Reset resampler state on emptying buffers 2021-01-11 03:58:14 +10:00
Connor McLaughlin
54c7fc6b08 AudioStream: Support resampling input 2021-01-11 01:14:32 +10:00
Connor McLaughlin
b44a654943 System: Reset throttler when audio buffers underflow
Should hopefully reduce the chances of the audio source ending up out of
phase from the emulation when vsync is disabled.
2020-12-07 02:44:23 +10:00
Connor McLaughlin
444a09efd4 AudioStream: Don't call FramesAvailable() while locked 2020-06-09 02:05:49 +10:00
Connor McLaughlin
531c3ad5fa AudioStream: Replace buffer queue with ring buffer
Should achieve a decent overall minimum latency reduction.
2020-06-07 01:22:03 +10:00
Connor McLaughlin
b6fbdf9aeb AudioStream: Support changing output volume 2020-05-10 00:44:23 +10:00
Connor McLaughlin
1b9609ef61 Implement event-based scheduler instead of lock-step components 2020-01-24 16:23:39 +10:00
Connor McLaughlin
71c1e243fe Remove YBaseLib dependency 2020-01-10 13:40:53 +10:00
Connor McLaughlin
c52040434a Core: Linux warning fixes 2020-01-09 08:46:52 +10:00
Connor McLaughlin
1b7be01507 Qt: Implement audio output 2020-01-07 14:18:51 +10:00
Connor McLaughlin
ed7aabe5f2 Common: Add a NullAudioStream implementation 2019-12-23 17:02:11 +10:00
Connor McLaughlin
d88da93a55 SPU: Save state support 2019-10-11 16:54:21 +10:00
Connor McLaughlin
135e282f8d common: Add sync-to-audio support 2019-10-11 13:24:41 +10:00
Connor McLaughlin
bc51cc6d7d common: Add AudioStream class 2019-10-11 02:20:10 +10:00