diff --git a/example/src/ofApp.cpp b/example/src/ofApp.cpp index c71f9fb..520b2a6 100755 --- a/example/src/ofApp.cpp +++ b/example/src/ofApp.cpp @@ -3,6 +3,9 @@ void ofApp::setup() { ofBackground(0); + // Enable or disable audio for video sources globally + ofx::piMapper::VideoSource::enableAudio = true; + // Add our CustomSource to list of fbo sources of the piMapper // FBO sources should be added before piMapper.setup() so the // piMapper is able to load the source if it is assigned to diff --git a/example/src/ofApp.h b/example/src/ofApp.h index be19ff2..88f13c7 100755 --- a/example/src/ofApp.h +++ b/example/src/ofApp.h @@ -4,6 +4,7 @@ #include "ofxPiMapper.h" #include "CustomSource.h" #include "CrossSource.h" +#include "VideoSource.h" class ofApp : public ofBaseApp { public: