Open Game Engine 2D API
|
Functions | |
int | OGE_PlayMusic (int iLoopTimes) |
Play current music. | |
int | OGE_StopMusic () |
Stop current music. | |
int | OGE_PauseMusic () |
Pause the current music. | |
int | OGE_ResumeMusic () |
Resume current music. | |
int | OGE_PlayMusicByName (string sMusicName, int iLoopTimes) |
Play music by name. | |
int | OGE_FadeInMusic (string sMusicName, int iLoopTimes, int iFadingTime) |
Play music by name with fade in effect. | |
void | OGE_RemoveMusic (string sName) |
Remove music by name. | |
int | OGE_FadeOutMusic (int iFadingTime) |
Let the playing music fade out. | |
int | OGE_GetSound (string sSoundName) |
Get the sound by name. | |
int | OGE_PlaySound (int iSoundCode) |
Play the sound. | |
int | OGE_PlaySoundById (int iSoundId, int iLoopTimes) |
Play the sound by ID. | |
int | OGE_PlaySoundByCode (int iSoundCode, int iLoopTimes) |
Play the sound by code. | |
int | OGE_PlaySoundByName (string sSoundName, int iLoopTimes) |
Play the sound by name. | |
int | OGE_StopSoundById (int iSoundId) |
Stop the sound by ID. | |
int | OGE_StopSoundByCode (int iSoundCode) |
Stop the sound by code. | |
int | OGE_StopSoundByName (string sSoundName) |
Stop sound by name. | |
int | OGE_StopAudio () |
Stop all sounds and musics. | |
int | OGE_GetSoundVolume () |
Get the sound volume. | |
int | OGE_GetMusicVolume () |
Get the music volume. | |
void | OGE_SetSoundVolume (int iValue) |
Set the sound volume. | |
void | OGE_SetMusicVolume (int iValue) |
Set the music volume. |
int OGE_FadeInMusic | ( | string | sMusicName, |
int | iLoopTimes, | ||
int | iFadingTime | ||
) |
Play music by name with fade in effect.
[in] | sMusicName | The name of the music |
[in] | iLoopTimes | The play times |
[in] | iFadingTime | The time of fading in |
int OGE_FadeOutMusic | ( | int | iFadingTime | ) |
Let the playing music fade out.
[in] | iFadingTime | The time of fading out |
int OGE_GetMusicVolume | ( | ) |
Get the music volume.
int OGE_GetSound | ( | string | sSoundName | ) |
Get the sound by name.
[in] | sSoundName | The name of the sound |
int OGE_GetSoundVolume | ( | ) |
Get the sound volume.
int OGE_PauseMusic | ( | ) |
Pause the current music.
int OGE_PlayMusic | ( | int | iLoopTimes | ) |
Play current music.
[in] | iLoopTimes | The play times |
int OGE_PlayMusicByName | ( | string | sMusicName, |
int | iLoopTimes | ||
) |
Play music by name.
[in] | sMusicName | The name of the music |
[in] | iLoopTimes | The play times |
int OGE_PlaySound | ( | int | iSoundCode | ) |
Play the sound.
[in] | iSoundCode | The code of the sound |
int OGE_PlaySoundByCode | ( | int | iSoundCode, |
int | iLoopTimes | ||
) |
Play the sound by code.
[in] | iSoundCode | The code of the sound |
[in] | iLoopTimes | The play times |
int OGE_PlaySoundById | ( | int | iSoundId, |
int | iLoopTimes | ||
) |
Play the sound by ID.
[in] | iSoundId | The ID of the sound |
[in] | iLoopTimes | The play times |
int OGE_PlaySoundByName | ( | string | sSoundName, |
int | iLoopTimes | ||
) |
Play the sound by name.
[in] | sSoundName | The name of the sound |
[in] | iLoopTimes | The play times |
void OGE_RemoveMusic | ( | string | sName | ) |
Remove music by name.
[in] | sName | The name of the music |
int OGE_ResumeMusic | ( | ) |
Resume current music.
void OGE_SetMusicVolume | ( | int | iValue | ) |
Set the music volume.
[in] | iValue | The music volume |
void OGE_SetSoundVolume | ( | int | iValue | ) |
Set the sound volume.
[in] | iValue | The sound volume |
int OGE_StopAudio | ( | ) |
Stop all sounds and musics.
int OGE_StopMusic | ( | ) |
Stop current music.
int OGE_StopSoundByCode | ( | int | iSoundCode | ) |
Stop the sound by code.
[in] | iSoundCode | The code of the sound |
int OGE_StopSoundById | ( | int | iSoundId | ) |
Stop the sound by ID.
[in] | iSoundId | The ID of the sound |
int OGE_StopSoundByName | ( | string | sSoundName | ) |
Stop sound by name.
[in] | sSoundName | The name of the sound |