More audio device

This commit is contained in:
wheremyfoodat 2025-02-09 04:58:24 +02:00
parent 8e89f7f24e
commit 69afa2f87a

View file

@ -28,7 +28,7 @@ class LibretroAudioDevice : public AudioDeviceInterface {
void renderBatch(RenderBatchCallback callback) override {
if (running) {
static constexpr usize frameCount = maxFrameCount;
static constexpr usize frameCount = 774;
static constexpr usize channelCount = 2;
static s16 audioBuffer[frameCount * channelCount];
@ -52,7 +52,7 @@ class LibretroAudioDevice : public AudioDeviceInterface {
}
}
callback(audioBuffer, sizeof(audioBuffer) / (2 * sizeof(s16)));
callback(audioBuffer, sizeof(audioBuffer) / (channelCount * sizeof(s16)));
}
}