Skip to content

Commit 7328c86

Browse files
committed
removing last commit, not working as desired on linux
1 parent 38ec528 commit 7328c86

File tree

2 files changed

+0
-50
lines changed

2 files changed

+0
-50
lines changed

src/objects/sound/AudioDevice.cpp

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,6 @@ void AudioDevice::setupObjectContent(shared_ptr<ofAppGLFWWindow> &mainWindow){
7676

7777
//--------------------------------------------------------------
7878
void AudioDevice::setupAudioOutObjectContent(pdsp::Engine &engine){
79-
80-
if(this->numInlets != in_channels || this->numOutlets != out_channels){
81-
resetInletsOutlets();
82-
}
83-
8479
if(deviceLoaded && out_channels>0){
8580
for(size_t c=0;c<static_cast<size_t>(out_channels);c++){
8681
OUT_CH[c].out_signal() >> engine.audio_out(c);
@@ -331,50 +326,6 @@ void AudioDevice::resetSystemObject(){
331326
}
332327
}
333328

334-
//--------------------------------------------------------------
335-
void AudioDevice::resetInletsOutlets(){
336-
337-
ofxXmlSettings XML;
338-
339-
if (XML.loadFile(patchFile)){
340-
int totalObjects = XML.getNumTags("object");
341-
342-
if (XML.pushTag("settings")){
343-
in_channels = XML.getValue("input_channels",0);
344-
out_channels = XML.getValue("output_channels",0);
345-
sampleRateIN = XML.getValue("sample_rate_in",0);
346-
sampleRateOUT= XML.getValue("sample_rate_out",0);
347-
bufferSize = XML.getValue("buffer_size",0);
348-
XML.popTag();
349-
}
350-
351-
// Save new object config
352-
for(int i=0;i<totalObjects;i++){
353-
if(XML.pushTag("object", i)){
354-
if(XML.getValue("id", -1) == this->nId){
355-
// Dynamic reloading outlets
356-
XML.removeTag("outlets");
357-
int newOutlets = XML.addTag("outlets");
358-
if(XML.pushTag("outlets",newOutlets)){
359-
for(int j=0;j<static_cast<int>(this->outletsType.size());j++){
360-
int newLink = XML.addTag("link");
361-
if(XML.pushTag("link",newLink)){
362-
XML.setValue("type",this->outletsType.at(j));
363-
XML.popTag();
364-
}
365-
}
366-
XML.popTag();
367-
}
368-
}
369-
}
370-
}
371-
372-
XML.saveFile();
373-
374-
}
375-
376-
}
377-
378329
//--------------------------------------------------------------
379330
void AudioDevice::loadDeviceInfo(){
380331
ofxXmlSettings XML;

src/objects/sound/AudioDevice.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ class AudioDevice : public PatchObject {
5959
void resetSystemObject() override;
6060

6161
void loadDeviceInfo();
62-
void resetInletsOutlets();
6362

6463
vector<ofSoundBuffer> IN_CH;
6564
vector<pdsp::ExternalInput> PN_IN_CH;

0 commit comments

Comments
 (0)