Method | Description | |
---|---|---|
Pause ( ) : void |
Pause the sound. This function pauses the sound if it was playing, otherwise (sound already paused or stopped) it has no effect.
|
|
Play ( ) : void |
Start or resume playing the sound. 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 sound is played.
|
|
Sound ( ) : System |
Default constructor (invalid sound)
|
|
Sound ( |
Construct the sound from another source
|
|
Sound ( |
Construct the sound with a buffer
|
|
Stop ( ) : void |
Stop playing the sound. This function stops the sound 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
|
Method | Description | |
---|---|---|
Destroy ( bool disposing ) : void |
Handle the destruction of the object
|
Method | Description | |
---|---|---|
sfSound_copy ( |
||
sfSound_create ( ) : |
||
sfSound_destroy ( |
||
sfSound_getAttenuation ( |
||
sfSound_getBuffer ( |
||
sfSound_getLoop ( |
||
sfSound_getMinDistance ( |
||
sfSound_getPitch ( |
||
sfSound_getPlayingOffset ( |
||
sfSound_getPosition ( |
||
sfSound_getStatus ( |
||
sfSound_getVolume ( |
||
sfSound_isRelativeToListener ( |
||
sfSound_pause ( |
||
sfSound_play ( |
||
sfSound_setAttenuation ( |
||
sfSound_setBuffer ( |
||
sfSound_setLoop ( |
||
sfSound_setMinDistance ( |
||
sfSound_setPitch ( |
||
sfSound_setPlayingOffset ( |
||
sfSound_setPosition ( |
||
sfSound_setRelativeToListener ( |
||
sfSound_setVolume ( |
||
sfSound_stop ( |
protected Destroy ( bool disposing ) : void | ||
disposing | bool | Is the GC disposing the object, or is it an explicit call ? |
return | void |
public Sound ( |
||
buffer | Sound buffer containing the audio data to play with the sound | |
return | System |