Skip to content

Commit

Permalink
RealtimeEffectManager: Resize input and output buffers as needed
Browse files Browse the repository at this point in the history
Fixes a crash on Windows when attempting to play audio.

Signed-off-by: Avery King <[email protected]>
(cherry picked from commit 921c519)
  • Loading branch information
Avery King committed Aug 29, 2024
1 parent 83dcf17 commit b227aea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/effects/RealtimeEffectManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,9 @@ size_t RealtimeEffectManager::RealtimeProcess(int group, unsigned chans, float *
mOutputBuffers.reserve(chans);
}

mInputBuffers.resize(chans);
mOutputBuffers.resize(chans);

// Remember when we started so we can calculate the amount of latency we
// are introducing
steady_clock::time_point start = steady_clock::now();
Expand Down

0 comments on commit b227aea

Please sign in to comment.