Skip to content

Commit

Permalink
AudioJack: Fix segfault for some bufsizes
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesLorenz committed Oct 1, 2023
1 parent e1cc63b commit f4ed361
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/audio/AudioJack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ int AudioJack::processCallback( jack_nframes_t _nframes, void * _udata )
while( done < _nframes && m_stopped == false )
{
jack_nframes_t todo = std::min<jack_nframes_t>(
_nframes,
_nframes-done,
m_framesToDoInCurBuf -
m_framesDoneInCurBuf);
const float gain = audioEngine()->masterGain();
Expand Down

0 comments on commit f4ed361

Please sign in to comment.