From 32fd85b9098cec0c346215ee49af44dcccb540a0 Mon Sep 17 00:00:00 2001 From: BERTHAUT Florent <florent.berthaut@univ-lille1.fr> Date: Mon, 4 May 2020 17:22:03 +0200 Subject: [PATCH] Added volume control --- src/gdpd.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gdpd.cpp b/src/gdpd.cpp index 549be86..da5956d 100644 --- a/src/gdpd.cpp +++ b/src/gdpd.cpp @@ -19,7 +19,6 @@ int Gdpd::audioCallback(void *outputBuffer, void *inputBuffer, unsigned int nBuf Gdpd* gdpd = static_cast<Gdpd*>(userData); int ticks = nBufferFrames / 64; gdpd->m_pd.processFloat(ticks, (float*)inputBuffer, (float*)outputBuffer); - gdpd->m_pd.receiveMessages(); for(int b=0; b<nBufferFrames; ++b) { ((float*)outputBuffer)[b]*=gdpd->get_volume(); } @@ -43,7 +42,7 @@ int Gdpd::init(int nbInputs, int nbOutputs, int sampleRate) { return 1; } - libpd_set_verbose(1); + //libpd_set_verbose(1); //create message array m_messages = new Array(); -- GitLab