Méthode | Description | |
---|---|---|
Pause ( ) : void |
Pause the audio stream. This function pauses the stream if it was playing, otherwise (stream already paused or stopped) it has no effect.
|
|
Play ( ) : void |
Start or resume playing the audio stream. This function starts the stream if it was stopped, resumes it if it was paused, and restarts it from beginning if it was it already playing. This function uses its own thread so that it doesn't block the rest of the program while the stream is played.
|
|
SoundStream ( ) : System |
Default constructor
|
|
Stop ( ) : void |
Stop playing the audio stream. This function stops the stream if it was playing or paused, and does nothing if it was already stopped. It also resets the playing position (unlike pause()).
|
|
ToString ( ) : string |
Provide a string describing the object
|
Méthode | Description | |
---|---|---|
Destroy ( bool disposing ) : void |
Handle the destruction of the object
|
|
Initialize ( uint channelCount, uint sampleRate ) : void |
Set the audio stream parameters, you must call it before Play()
|
|
OnGetData ( short &samples ) : bool |
Virtual function called each time new audio data is needed to feed the stream
|
|
OnSeek ( Time timeOffset ) : void |
Virtual function called to seek into the stream
|
Méthode | Description | |
---|---|---|
GetData ( Chunk &dataChunk, |
Called each time new audio data is needed to feed the stream
|
|
Seek ( Time timeOffset, |
Called to seek in the stream
|
|
sfSoundStream_create ( GetDataCallbackType OnGetData, SeekCallbackType OnSeek, uint ChannelCount, uint SampleRate, |
||
sfSoundStream_destroy ( |
||
sfSoundStream_getAttenuation ( |
||
sfSoundStream_getChannelCount ( |
||
sfSoundStream_getLoop ( |
||
sfSoundStream_getMinDistance ( |
||
sfSoundStream_getPitch ( |
||
sfSoundStream_getPlayingOffset ( |
||
sfSoundStream_getPosition ( |
||
sfSoundStream_getSampleRate ( |
||
sfSoundStream_getStatus ( |
||
sfSoundStream_getVolume ( |
||
sfSoundStream_isRelativeToListener ( |
||
sfSoundStream_pause ( |
||
sfSoundStream_play ( |
||
sfSoundStream_setAttenuation ( |
||
sfSoundStream_setLoop ( |
||
sfSoundStream_setMinDistance ( |
||
sfSoundStream_setPitch ( |
||
sfSoundStream_setPlayingOffset ( |
||
sfSoundStream_setPosition ( |
||
sfSoundStream_setRelativeToListener ( |
||
sfSoundStream_setVolume ( |
||
sfSoundStream_stop ( |
protected Destroy ( bool disposing ) : void | ||
disposing | bool | Is the GC disposing the object, or is it an explicit call ? |
Résultat | void |
protected Initialize ( uint channelCount, uint sampleRate ) : void | ||
channelCount | uint | Number of channels |
sampleRate | uint | Sample rate, in samples per second |
Résultat | void |
protected abstract OnGetData ( short &samples ) : bool | ||
samples | short | Array of samples to fill for the stream |
Résultat | bool |
protected abstract OnSeek ( Time timeOffset ) : void | ||
timeOffset | Time | New position |
Résultat | void |