Skip to content

Commit 0a5ab6e

Browse files
committed
Fixes audio devices array indexing bug
1 parent 45f0df6 commit 0a5ab6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ofxVisualProgramming.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1461,7 +1461,7 @@ void ofxVisualProgramming::loadPatch(string patchFile){
14611461
if(!audioDevicesID_IN.empty()){
14621462
isInputDeviceAvailable = true;
14631463
// select the first one available
1464-
audioGUIINIndex = audioDevicesID_IN.at(0);
1464+
audioGUIINIndex = 0;
14651465
audioINDev = audioDevicesID_IN.at(audioGUIINIndex);
14661466
}else{
14671467
isInputDeviceAvailable = false;
@@ -1486,7 +1486,7 @@ void ofxVisualProgramming::loadPatch(string patchFile){
14861486
if(!audioDevicesID_OUT.empty()){
14871487
isOutputDeviceAvailable = true;
14881488
// select the first one available
1489-
audioGUIOUTIndex = audioDevicesID_OUT.at(0);
1489+
audioGUIOUTIndex = 0;
14901490
audioOUTDev = audioDevicesID_OUT.at(audioGUIOUTIndex);
14911491
}else{
14921492
isOutputDeviceAvailable = false;

0 commit comments

Comments
 (0)