Skip to content

Commit 1f6fb8a

Browse files
committed
Fixed glitches in the example app.
1 parent de7de84 commit 1f6fb8a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

complete/examples/GuiAndAudioThreadIdPrinting/MainComponent.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ class GuiAndAudioThreadIdPrinting : public juce::AudioAppComponent {
3434
DBG("prepareToPlay() thread ID: " << getCurrentThreadId());
3535
}
3636

37-
void getNextAudioBlock(const juce::AudioSourceChannelInfo&) override {
37+
void getNextAudioBlock(const juce::AudioSourceChannelInfo& info) override {
3838
DBG("getNextAudioBlock() thread ID: " << getCurrentThreadId());
39+
40+
info.clearActiveBufferRegion();
3941
}
4042

4143
void releaseResources() override {

0 commit comments

Comments
 (0)