ofSoundPlayer class is designed for playing and controlling sound samples. The basic usage of the
ofSoundPlayer sound object is the following:
sound.loadSound( fileName );
You need to call the
ofSoundUpdate(); function in
testApp::update() for all the samples to play correctly.
There are a number of functions for controlling sample playback. They are as follows:
stop()function stops sample playing.
trueif our sample is currently playing.
setPaused( pause )function enables or disables pause in sample playing, ...