Skip to content

Commit

Permalink
added printAudioOut for debugging. should take out eventually
Browse files Browse the repository at this point in the history
  • Loading branch information
roymacdonald committed Dec 22, 2023
1 parent 0effb49 commit 8b267ee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/ofxSoundObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#include "ofSoundStream.h"
#include "ofLog.h"
#include "ofEvents.h"

bool ofxSoundObject::bPrintAudioOut = false;
//--------------------------------------------------------------
// ofxSoundObject
//--------------------------------------------------------------
Expand Down Expand Up @@ -112,6 +114,11 @@ ofxSoundObject* ofxSoundObject::getSignalDestinationObject(){
//ofLogWarning("ofxSoundObject::getSignalDestinationObject", "There is no destination on your signal chain so most probaly you will get no sound");
return nullptr;
}
void ofxSoundObject::printAudioOut(){
if(bPrintAudioOut){
std::cout << "ofxSoundObject::audioOut " << getName() << " <---- " << ((inputObject == nullptr)?"NULL":inputObject->getName()) << "\n";// << " bypassed: " << std::boolalpha << isBypassed() << "\n";
}
}
//--------------------------------------------------------------
// this pulls the audio through from earlier links in the chain
void ofxSoundObject::audioOut(ofSoundBuffer &output) {
Expand Down

0 comments on commit 8b267ee

Please sign in to comment.