메소드 | 설명 | |
---|---|---|
Music ( Stream stream ) : System |
Constructs a music from a custom stream
|
|
Music ( byte bytes ) : System |
Constructs a music from an audio file in memory
|
|
Music ( string filename ) : System |
Constructs a music from an audio file
|
|
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.
|
|
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
|
메소드 | 설명 | |
---|---|---|
Destroy ( bool disposing ) : void |
Handle the destruction of the object
|
메소드 | 설명 | |
---|---|---|
sfMusic_createFromFile ( string Filename ) : |
||
sfMusic_createFromMemory ( |
||
sfMusic_createFromStream ( |
||
sfMusic_destroy ( |
||
sfMusic_getAttenuation ( |
||
sfMusic_getChannelCount ( |
||
sfMusic_getDuration ( |
||
sfMusic_getLoop ( |
||
sfMusic_getMinDistance ( |
||
sfMusic_getPitch ( |
||
sfMusic_getPlayingOffset ( |
||
sfMusic_getPosition ( |
||
sfMusic_getSampleRate ( |
||
sfMusic_getStatus ( |
||
sfMusic_getVolume ( |
||
sfMusic_isRelativeToListener ( |
||
sfMusic_pause ( |
||
sfMusic_play ( |
||
sfMusic_setAttenuation ( |
||
sfMusic_setLoop ( |
||
sfMusic_setMinDistance ( |
||
sfMusic_setPitch ( |
||
sfMusic_setPlayingOffset ( |
||
sfMusic_setPosition ( |
||
sfMusic_setRelativeToListener ( |
||
sfMusic_setVolume ( |
||
sfMusic_stop ( |
protected Destroy ( bool disposing ) : void | ||
disposing | bool | Is the GC disposing the object, or is it an explicit call ? |
리턴 | void |
public Music ( Stream stream ) : System | ||
stream | Stream | Source stream to read from |
리턴 | System |
public Music ( byte bytes ) : System | ||
bytes | byte | Byte array containing the file contents |
리턴 | System |
public Music ( string filename ) : System | ||
filename | string | Path of the music file to open |
리턴 | System |