Go to the source code of this file.
| unsigned int sound_get_current_pos |
( |
| ) |
|
| bool sound_init |
( |
void(*)(int) |
time_callback | ) |
|
Global initialization of sound.
This function is required to be called prior to the first call sound_play() and does several internal initializations.
- Parameters
-
| time_callback | callback function receiving the elapsed seconds as parameter |
- Returns
- true in case of success, false otherwise
| bool sound_play |
( |
struct track * |
track | ) |
|
Start playback of track.
This function is required to be called prior to the first call sound_play() and does several internal initializations.
- Parameters
-
- Returns
- true in case of success, false otherwise
| void sound_seek |
( |
unsigned int |
pos | ) |
|
Stop playback of current track.
- Returns
- true in case of success, false otherwise