OpenSpace3D libs
OpenSpace 3D libraries for plugITs and OS3D developer
|
Data Structures | |
struct | AudioPlayer |
AudioPlayer : player that can use both cAudio and FFmpeg as backends transparently ///. More... | |
Typedefs | |
typedef struct mkAudioPlayer | AudioPlayer |
Functions | |
audioGetEffectByName (name) | |
audioGetAvailableEffects () | |
audioGetAvailablePresets (name) | |
audioPlayerCreate (name, loop, enableEffects, volume, pitch, stopCallback) | |
audioPlayerCreate3d (name, loop, enableEffects, volume, pitch, stopCallback, object, attenuation, cone) | |
audioPlayerSet3dSource (sndstr, object) | |
audioPlayerSetAttenuation (sndstr, attenuation) | |
audioPlayerSetCone (sndstr, cone) | |
audioPlayerInternalStopCb (obj, sndstr) | |
audioPlayerUpdate (sndstr) | |
If the sound is a 3D sound, update its position according to the position of its source 3D object. When using FFmpeg, this function fills the cAudio buffer with raw audio data from FFmpeg. It should be called in pre-render callbacks. | |
audioPlayerUpdateBuffer (sndstr, buff) | |
audioPlayerInternalStop (sndstr) | |
audioPlayerStop (sndstr) | |
audioPlayerDelete (sndstr) | |
audioPlayerPlay (sndstr) | |
audioPlayerPause (sndstr) | |
audioPlayerGetLength (sndstr) | |
audioPlayerGetCurrentTime (sndstr) | |
openSoundMediaPlayer (sndstr, path) | |
openSoundCaudio (sndstr, path) | |
audioPlayerSetVolume (sndstr, vol) | |
audioPlayerSetPitch (sndstr, pitch) | |
audioPlayerSeek (sndstr, offset) | |
Seek relative to the current position in the sound. Note that seeking is not always supported by audio sources. | |
audioPlayerEnableEffect (sndstr) | |
audioPlayerDisableEffect (sndstr) | |
audioPlayerOpenSound (sndstr, newSound) | |
audioPlayerOpenBuffered (sndstr, samplerate, format) | |
audioPlayerGetCurrentSound (sndstr) | |
typedef struct mkAudioPlayer AudioPlayer |
audioGetEffectByName | ( | name | ) |
audioGetAvailableEffects | ( | ) |
audioGetAvailablePresets | ( | name | ) |
audioPlayerCreate | ( | name | , |
loop | , | ||
enableEffects | , | ||
volume | , | ||
pitch | , | ||
stopCallback | |||
) |
audioPlayerCreate3d | ( | name | , |
loop | , | ||
enableEffects | , | ||
volume | , | ||
pitch | , | ||
stopCallback | , | ||
object | , | ||
attenuation | , | ||
cone | |||
) |
audioPlayerSet3dSource | ( | sndstr | , |
object | |||
) |
audioPlayerSetAttenuation | ( | sndstr | , |
attenuation | |||
) |
audioPlayerSetCone | ( | sndstr | , |
cone | |||
) |
audioPlayerInternalStopCb | ( | obj | , |
sndstr | |||
) |
audioPlayerUpdate | ( | sndstr | ) |
If the sound is a 3D sound, update its position according to the position of its source 3D object. When using FFmpeg, this function fills the cAudio buffer with raw audio data from FFmpeg. It should be called in pre-render callbacks.
sndstr | AudioPlayer instance. |
audioPlayerUpdateBuffer | ( | sndstr | , |
buff | |||
) |
audioPlayerInternalStop | ( | sndstr | ) |
audioPlayerStop | ( | sndstr | ) |
audioPlayerDelete | ( | sndstr | ) |
audioPlayerPlay | ( | sndstr | ) |
audioPlayerPause | ( | sndstr | ) |
audioPlayerGetLength | ( | sndstr | ) |
audioPlayerGetCurrentTime | ( | sndstr | ) |
openSoundMediaPlayer | ( | sndstr | , |
path | |||
) |
openSoundCaudio | ( | sndstr | , |
path | |||
) |
audioPlayerSetVolume | ( | sndstr | , |
vol | |||
) |
audioPlayerSetPitch | ( | sndstr | , |
pitch | |||
) |
audioPlayerSeek | ( | sndstr | , |
offset | |||
) |
Seek relative to the current position in the sound. Note that seeking is not always supported by audio sources.
offset | Amount of time in seconds, relative to the current time. |
audioPlayerEnableEffect | ( | sndstr | ) |
audioPlayerDisableEffect | ( | sndstr | ) |
audioPlayerOpenSound | ( | sndstr | , |
newSound | |||
) |
audioPlayerOpenBuffered | ( | sndstr | , |
samplerate | , | ||
format | |||
) |
audioPlayerGetCurrentSound | ( | sndstr | ) |