GTAdhocAPI
Gran Turismo (6) Adhoc API Documentation
|
Music handling interface. More...
Public Member Functions | |
MMusic () | |
constructor taking no param More... | |
void | load (String type) |
Unknown. Type is 'system', 'pcm', 'midi'. More... | |
void | unload () |
Int | play (String group) |
Starts playing a group. i.e "menu". More... | |
Int | playex (String group) |
Starts playing a group. i.e "menu". More... | |
Int | playDirect (String code) |
Starts playing a music code. i.e "GT6_Menu01". More... | |
Int | keep (String group) |
Unknown. i.e "menu". More... | |
Int | keepDirect (String code) |
Unknown. i.e "GT6_Menu01". More... | |
void | stop (Float fadeout_seconds=0.0) |
Stops playback (with fadeout if provided) More... | |
void | pause (Bool pause) |
Pauses playback. More... | |
void | fadein (Float time=3.0) |
Fades in playback (in seconds) More... | |
void | fadeinDirect (Float time=3.0) |
Fades in playback - Direct (in seconds) More... | |
void | fadeout (Float time=3.0) |
Fades out playback (in seconds) More... | |
Int | isPlaying () |
Returns whether the mmusic is playing music. More... | |
Int | isPausing () |
Returns whether the mmusic's playback is paused. More... | |
Array< String > | getGroups () |
Gets all the groups from the BGM file as a string array. More... | |
Array< Map > | getMusics (String group) |
Gets all the musics in the specified group i.e "menu". More... | |
Map | getMusicInfo (String code) |
Gets a music by code i.e "GT6_Menu01". More... | |
Int | setCurrentVolume () |
Stripped. More... | |
Int | getNativeHandle () |
Gets the native pointer address. More... | |
Public Attributes | |
Int | number |
Number. More... | |
Int | repeat |
Defaults -1, 0 = no repeat, 1 = repeat. More... | |
Float | volume |
Gets or sets the volume. 0.0 to 1.0, Defaults 1.0. More... | |
Float | crossfade_time |
Gets or sets the crossfade time. Defaults 0.0. More... | |
Music handling interface.
Definition at line 6 of file MMusic.cpp.
|
inline |
constructor taking no param
Definition at line 10 of file MMusic.cpp.
void pdistd::MMusic::fadein | ( | Float | time = 3.0 | ) |
Fades in playback (in seconds)
void pdistd::MMusic::fadeinDirect | ( | Float | time = 3.0 | ) |
Fades in playback - Direct (in seconds)
void pdistd::MMusic::fadeout | ( | Float | time = 3.0 | ) |
Fades out playback (in seconds)
Gets all the groups from the BGM file as a string array.
Gets a music by code i.e "GT6_Menu01".
Gets all the musics in the specified group i.e "menu".
Int pdistd::MMusic::getNativeHandle | ( | ) |
Gets the native pointer address.
Int pdistd::MMusic::isPausing | ( | ) |
Returns whether the mmusic's playback is paused.
Int pdistd::MMusic::isPlaying | ( | ) |
Returns whether the mmusic is playing music.
Unknown. i.e "GT6_Menu01".
void pdistd::MMusic::load | ( | String | type | ) |
Unknown. Type is 'system', 'pcm', 'midi'.
void pdistd::MMusic::pause | ( | Bool | pause | ) |
Pauses playback.
Starts playing a group. i.e "menu".
Starts playing a music code. i.e "GT6_Menu01".
Starts playing a group. i.e "menu".
Int pdistd::MMusic::setCurrentVolume | ( | ) |
Stripped.
void pdistd::MMusic::stop | ( | Float | fadeout_seconds = 0.0 | ) |
Stops playback (with fadeout if provided)
void pdistd::MMusic::unload | ( | ) |
Float pdistd::MMusic::crossfade_time |
Gets or sets the crossfade time. Defaults 0.0.
Definition at line 98 of file MMusic.cpp.
Int pdistd::MMusic::number |
Number.
Definition at line 89 of file MMusic.cpp.
Int pdistd::MMusic::repeat |
Defaults -1, 0 = no repeat, 1 = repeat.
Definition at line 92 of file MMusic.cpp.
Float pdistd::MMusic::volume |
Gets or sets the volume. 0.0 to 1.0, Defaults 1.0.
Definition at line 95 of file MMusic.cpp.