mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-05 14:52:41 +13:00
Libretro audio device: Fix frame count
This commit is contained in:
parent
042ab6de03
commit
a376bb5c9b
1 changed files with 3 additions and 2 deletions
|
@ -28,7 +28,8 @@ class LibretroAudioDevice : public AudioDeviceInterface {
|
|||
|
||||
void renderBatch(RenderBatchCallback callback) override {
|
||||
if (running) {
|
||||
static constexpr usize frameCount = 774;
|
||||
static constexpr usize sampleRate = 32768; // 3DS samples per second
|
||||
static constexpr usize frameCount = sampleRate / 60; // 3DS samples per video frame
|
||||
static constexpr usize channelCount = 2;
|
||||
static s16 audioBuffer[frameCount * channelCount];
|
||||
|
||||
|
@ -57,4 +58,4 @@ class LibretroAudioDevice : public AudioDeviceInterface {
|
|||
}
|
||||
|
||||
bool isInitialized() const { return initialized; }
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue