From aa8ec6ff56f0ff532f7b45e81dad3423f7239a3d Mon Sep 17 00:00:00 2001 From: Timothy Schoen Date: Tue, 24 Dec 2024 02:19:32 +0100 Subject: [PATCH] Revert variable block size setting --- Libraries/pure-data | 2 +- Source/Dialogs/AudioSettingsPanel.h | 20 +------------------- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/Libraries/pure-data b/Libraries/pure-data index cdf5f4326..1e4b19983 160000 --- a/Libraries/pure-data +++ b/Libraries/pure-data @@ -1 +1 @@ -Subproject commit cdf5f43267303b8d03e9c7473144dbfca6ef3d58 +Subproject commit 1e4b199833f24fb21b57f847831c171f5df0ce79 diff --git a/Source/Dialogs/AudioSettingsPanel.h b/Source/Dialogs/AudioSettingsPanel.h index 8d7b7446a..7fd81092e 100644 --- a/Source/Dialogs/AudioSettingsPanel.h +++ b/Source/Dialogs/AudioSettingsPanel.h @@ -282,14 +282,6 @@ class StandaloneAudioSettingsPanel final : public SettingsDialogPanel setup.bufferSize = selected.getIntValue(); updateConfig(); })); - - StringArray dspBufferSizeStrings = { "1", "2", "4", "8", "16", "32", "64", "128", "256" }; - deviceConfigurationProperties.add(new CallbackComboProperty("DSP block size", dspBufferSizeStrings, String(libpd_blocksize()), [this](String const& selected) { - pd->suspendProcessing(true); - libpd_setblocksize(selected.getIntValue()); - pd->prepareToPlay(pd->AudioProcessor::getSampleRate(), pd->AudioProcessor::getBlockSize()); - pd->suspendProcessing(false); - })); } // This can possibly be empty if only one device type is available, and there is no device currently selected @@ -476,16 +468,7 @@ class DAWAudioSettingsPanel final : public SettingsDialogPanel latencyNumberBox = new PropertiesPanel::EditableComponent("Latency (samples)", latencyValue); tailLengthNumberBox = new PropertiesPanel::EditableComponent("Tail length (seconds)", tailLengthValue); - StringArray const dspBufferSizeStrings = { "1", "2", "4", "8", "16", "32", "64", "128", "256" }; - dspBlockSizeComboBox = new CallbackComboProperty("DSP block size", dspBufferSizeStrings, String(libpd_blocksize()), [this, pd = p](String const& selected) { - pd->suspendProcessing(true); - libpd_setblocksize(selected.getIntValue()); - pd->performLatencyCompensationChange(getValue(latencyValue)); - pd->prepareToPlay(pd->AudioProcessor::getSampleRate(), pd->AudioProcessor::getBlockSize()); - pd->suspendProcessing(false); - }); - - dawSettingsPanel.addSection("Audio", { dspBlockSizeComboBox, latencyNumberBox, tailLengthNumberBox }); + dawSettingsPanel.addSection("Audio", { latencyNumberBox, tailLengthNumberBox }); addAndMakeVisible(dawSettingsPanel); @@ -516,7 +499,6 @@ class DAWAudioSettingsPanel final : public SettingsDialogPanel PropertiesPanel dawSettingsPanel; - CallbackComboProperty* dspBlockSizeComboBox; PropertiesPanel::EditableComponent* latencyNumberBox; PropertiesPanel::EditableComponent* tailLengthNumberBox; };