Skip to content

Commit

Permalink
Check that the samplerate is greater than 0
Browse files Browse the repository at this point in the history
  • Loading branch information
abique committed Sep 20, 2023
1 parent 298dc78 commit 8c7f587
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/engine/engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class EngineParameters final {
sampleRate),
m_framesPerBuffer(framesPerBuffer) {
DEBUG_ASSERT(framesPerBuffer > 0);
DEBUG_ASSERT(sampleRate > 0);
}

private:
Expand Down

0 comments on commit 8c7f587

Please sign in to comment.