Skip to content

Commit

Permalink
SetupDialog - message on buffer size larger than 256
Browse files Browse the repository at this point in the history
  • Loading branch information
zonkmachine committed Sep 29, 2023
1 parent 7dc0052 commit 815315e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/gui/modals/SetupDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,11 @@ void SetupDialog::audioInterfaceChanged(const QString & iface)
void SetupDialog::updateBufferSizeWarning(int value)
{
QString text = "<ul>";
if((value & (value - 1)) != 0) // <=> value is not a power of 2 (for value > 0)
// 'value' is not a power of 2 (for value > 0) and under 256. On buffer sizes larger than 256
// lmms works with chunks of size 256 and only the final mix will use the actual buffer size.
// Plugins don't see a larger buffer size than 256 so anything larger than this is functionally
// a 'power of 2' value.
if(((value & (value - 1)) != 0) && value < 256)
{
text += "<li>" + tr("The currently selected value is not a power of 2 "
"(32, 64, 128, 256, 512, 1024, ...). Some plugins may not be available.") + "</li>";
Expand Down

0 comments on commit 815315e

Please sign in to comment.