Browse Source

Enable audio for example video sources

Add example code for using HDMI audio output.
master
Krisjanis Rijnieks 8 years ago
parent
commit
870f10bd72
  1. 3
      example/src/ofApp.cpp

3
example/src/ofApp.cpp

@ -5,7 +5,8 @@ void ofApp::setup(){
// Enable or disable audio for video sources globally
// Set this to false to save resources on the Raspberry Pi
ofx::piMapper::VideoSource::enableAudio = false;
ofx::piMapper::VideoSource::enableAudio = true;
ofx::piMapper::VideoSource::useHDMIForAudio = false;
// Add our CustomSource to list of fbo sources of the piMapper
// FBO sources should be added before piMapper.setup() so the

Loading…
Cancel
Save