Browse Source

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

master
Krisjanis Rijnieks 10 years ago
parent
commit
65afb42383
  1. 3
      example/src/ofApp.cpp
  2. 1
      example/src/ofApp.h

3
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

1
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:

Loading…
Cancel
Save