From 65afb423839d847ff4f29e9c2e2684206b0f87d7 Mon Sep 17 00:00:00 2001 From: Krisjanis Rijnieks Date: Tue, 1 Dec 2015 22:33:56 +0100 Subject: [PATCH] Make use of the `VideoSource::enableAudio` flag in the example --- example/src/ofApp.cpp | 3 +++ example/src/ofApp.h | 1 + 2 files changed, 4 insertions(+) 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: