mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 09:13:39 +01:00
Add samplerate argument to NativeMix
This commit is contained in:
1 parent
8421c1e2a1
commit
a5fdf3d05b
13 files changed
+38
-37
No files matched your search
@@ -124,7 +124,7 @@ int DSoundAudioBackend::RunThread() {
|
||||
int numBytesToRender = RoundDown128(ModBufferSize(currentPos_ - lastPos_));
|
||||
|
||||
if (numBytesToRender >= 256) {
|
||||
int numBytesRendered = 4 * (*callback_)(realtimeBuffer_, numBytesToRender >> 2, 16, 44100);
|
||||
int numBytesRendered = 4 * (*callback_)(realtimeBuffer_, numBytesToRender >> 2, 44100);
|
||||
//We need to copy the full buffer, regardless of what the mixer claims to have filled
|
||||
//If we don't do this then the sound will loop if the sound stops and the mixer writes only zeroes
|
||||
numBytesRendered = numBytesToRender;
|
||||
|
||||
Reference in new issue
Block a user