File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -260,6 +260,8 @@ void Mixer::initInlets(){
260260// --------------------------------------------------------------
261261void Mixer::resetInletsSettings (){
262262
263+ mix.disconnectIn ();
264+
263265 vector<bool > tempInletsConn;
264266 for (int i=0 ;i<this ->numInlets ;i++){
265267 if (this ->inletsConnected [i]){
@@ -281,7 +283,7 @@ void Mixer::resetInletsSettings(){
281283
282284 _inletParams[0 ] = new vector<float >();
283285
284- for (size_t i=0 ;i<signalInlets;i++){
286+ for (int i=0 ;i<signalInlets;i++){
285287 _inletParams[i+1 ] = new ofSoundBuffer ();
286288 }
287289
@@ -290,12 +292,12 @@ void Mixer::resetInletsSettings(){
290292
291293 this ->addInlet (VP_LINK_ARRAY," control" );
292294
293- for (size_t i=0 ;i<signalInlets;i++){
295+ for (int i=0 ;i<signalInlets;i++){
294296 this ->addInlet (VP_LINK_AUDIO," s" +ofToString (i+1 ));
295297 }
296298
297299 this ->inletsConnected .clear ();
298- for (int i=0 ;i<tempInletsConn.size ();i++){
300+ for (size_t i=0 ;i<tempInletsConn.size ();i++){
299301 if (tempInletsConn.at (i)){
300302 this ->inletsConnected .push_back (true );
301303 }else {
You can’t perform that action at this time.
0 commit comments