This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.
ofSoundPlayer.h
Go to the documentation of this file.
Definition ofSoundBaseTypes.h:161
std::shared_ptr< ofBaseSoundPlayer > getPlayer()
Definition ofSoundPlayer.cpp:116
OF_DEPRECATED_MSG("Use load", bool loadSound(std::string fileName, bool stream=false))
bool isLoaded() const
Queries the player to see if its file was loaded successfully.
Definition ofSoundPlayer.cpp:248
void setPosition(float percent)
Sets position of the playhead within the file (aka "seeking").
Definition ofSoundPlayer.cpp:202
OF_DEPRECATED_MSG("Use isPlaying", bool getIsPlaying() const)
void setPlayer(std::shared_ptr< ofBaseSoundPlayer > newPlayer)
Definition ofSoundPlayer.cpp:111
int getPositionMS() const
Gets position of the playhead.
Definition ofSoundPlayer.cpp:225
bool load(const of::filesystem::path &fileName, bool stream=false)
Tells the sound player which file to play.
Definition ofSoundPlayer.cpp:121
void setMultiPlay(bool multiplay)
Enables playing multiple simultaneous copies of the sound.
Definition ofSoundPlayer.cpp:195
void setLoop(bool loop)
Sets whether to loop once the end of the file is reached.
Definition ofSoundPlayer.cpp:188
bool isPlaying() const
Gets current playback state.
Definition ofSoundPlayer.cpp:234
void setPositionMS(int ms)
Sets position of the playhead within the file (aka "seeking").
Definition ofSoundPlayer.cpp:209
void setVolume(float vol)
Sets playback volume.
Definition ofSoundPlayer.cpp:160
void setPaused(bool paused)
Enables pause / resume.
Definition ofSoundPlayer.cpp:181
float getPosition() const
Gets position of the playhead.
Definition ofSoundPlayer.cpp:216
void setSpeed(float speed)
Sets playback speed.
Definition ofSoundPlayer.cpp:174
OF_DEPRECATED_MSG("Use unload", void unloadSound())
void unload()
Stops and unloads the current sound.
Definition ofSoundPlayer.cpp:134
float * ofSoundGetSpectrum(int nBands)
Gets a frequency spectrum sample, taking all current sound players into account.
Definition ofSoundPlayer.cpp:90
void ofSoundStopAll()
Stops all active sound players on FMOD-based systems (windows, osx).
Definition ofSoundPlayer.cpp:52
void ofSoundUpdate()
Call in your app's update() to update FMOD-based sound players.
Definition ofSoundPlayer.cpp:72
void ofSoundSetVolume(float vol)
Sets global volume for FMOD-based sound players (windows, osx).
Definition ofSoundPlayer.cpp:61