From 870f10bd723e6338401e839dd9522ffd4e58bc52 Mon Sep 17 00:00:00 2001 From: Krisjanis Rijnieks Date: Tue, 7 Mar 2017 18:12:40 +0100 Subject: [PATCH] Enable audio for example video sources Add example code for using HDMI audio output. --- example/src/ofApp.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/example/src/ofApp.cpp b/example/src/ofApp.cpp index f4a0027..23a55db 100644 --- a/example/src/ofApp.cpp +++ b/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