Skip to content

Commit fe1b3e2

Browse files
committed
fixes audio device outlet reset when changing device
1 parent 197b50a commit fe1b3e2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/objects/sound/AudioDevice.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,8 @@ void AudioDevice::resetSystemObject(){
327327

328328
deviceLoaded = true;
329329
}
330+
331+
this->saveConfig(false);
330332
}
331333

332334
//--------------------------------------------------------------

src/ofxVisualProgramming.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1701,6 +1701,8 @@ void ofxVisualProgramming::activateDSP(){
17011701
if(!found){
17021702
glm::vec3 temp = canvas.screenToWorld(glm::vec3(ofGetWindowWidth()/2,ofGetWindowHeight()/2 + 100,0));
17031703
addObject("audio device",ofVec2f(temp.x,temp.y));
1704+
}else{
1705+
resetSystemObjects();
17041706
}
17051707

17061708
setPatchVariable("dsp",1);

0 commit comments

Comments
 (0)