Skip to content

Commit

Permalink
audio: fix that dummy plug-in was always set back to 1024 buffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Feb 18, 2025
1 parent 3edf6dc commit 0a22dc5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/plugins/score-plugin-audio/Audio/Settings/Model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,14 @@ void Model::initDriver(Audio::AudioFactory::ConcreteKey val)
== Audio::AudioFactory::ConcreteKey{score::uuids::string_generator::compute(
"13dabcc3-9cda-422f-a8c7-5fef5c220677")})
{
if(m_Rate != 44100)
if(m_Rate < 1 || m_Rate > 48 * 384000)
{
m_Rate = 44100;
RateChanged(m_Rate);
}
if(m_BufferSize != 1024)
if(m_BufferSize < 1 || m_BufferSize > 32768 * 8)
{
m_BufferSize = 1024;
m_BufferSize = 128;
BufferSizeChanged(m_BufferSize);
}
}
Expand Down

0 comments on commit 0a22dc5

Please sign in to comment.