Skip to content
Addon for Openframeworks to play sounds on selected speakers
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example_simple
src
.gitignore
README.md

README.md

ofxSoundPlayerMultiOutput

Addon for Openframeworks to play sounds on selected speakers on a given soundcard. It uses an implementation of ofSoundPlayer with Fmod.

You can select an output with the function

void ofFmodSelectDriver(int driver);

Then you can use the method playTo to play the loaded sound on different speakers:

soundPlayer.load("sound.mp3");
...
soundPlayer.playTo(1); 			// Plays sound to speaker 1
soundPlayer.playTo(3,4); 		// Plays sound to speakers 3,4
int speakers[4] = {0,1,4,5};	
soundPlayer.playTo(speakers,4); // Plays sound to speakers 0,1,4,5

You can also set individual volume for every channel and every speaker using setVolumeAt

References

https://raw.githubusercontent.com/vcuculo/ofxMultiSpeakerSoundPlayer

Platform

Developped with Openframeworks 0.8+ on MacOS 10.9.4 with a Motu 828mk2 device connected through Firewire and UltraLite MK3 USB

Screenshot

System preferences Motu speakers list

You can’t perform that action at this time.