Make use of the VideoSource::enableAudio flag in the example

This commit is contained in:
Krisjanis Rijnieks
2015-12-01 22:33:56 +01:00
parent aa1397f50a
commit 65afb42383
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -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
+1
View File
@@ -4,6 +4,7 @@
#include "ofxPiMapper.h"
#include "CustomSource.h"
#include "CrossSource.h"
#include "VideoSource.h"
class ofApp : public ofBaseApp {
public: