diff options
Diffstat (limited to 'plugingui/statusframecontent.cc')
-rw-r--r-- | plugingui/statusframecontent.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/plugingui/statusframecontent.cc b/plugingui/statusframecontent.cc index d988c2c..e160da0 100644 --- a/plugingui/statusframecontent.cc +++ b/plugingui/statusframecontent.cc @@ -47,6 +47,8 @@ StatusframeContent::StatusframeContent( this, &StatusframeContent::updateMidimapLoadStatus); CONNECT(this, settings_notifier.samplerate, this, &StatusframeContent::updateSamplerate); + CONNECT(this, settings_notifier.buffer_size, + this, &StatusframeContent::updateBufferSize); CONNECT(this, settings_notifier.enable_resampling, this, &StatusframeContent::updateResamplingEnabled); CONNECT(this, settings_notifier.resampling_active, @@ -77,6 +79,7 @@ void StatusframeContent::updateContent() // "Drumkit version: " + drumkit_version + "\n" "Drumkit samplerate: " + drumkit_samplerate + "\n" "Session samplerate: " + samplerate + "\n" + "Session buffer size: " + buffer_size + "\n" // "Resampling enabled: " + resampling_enabled + "\n" "Resampling active: " + resampling_active + "\n" "Number of underruns: " + number_of_underruns + "\n" @@ -162,6 +165,13 @@ void StatusframeContent::updateSamplerate(double samplerate) updateContent(); } +void StatusframeContent::updateBufferSize(std::size_t buffer_size) +{ + this->buffer_size = std::to_string(buffer_size); + + updateContent(); +} + void StatusframeContent::updateResamplingEnabled(bool enable_resampling) { this->resampling_enabled = enable_resampling ? "Yes" : "No"; |