|
Atrinik Client 2.5
|
#include <global.h>Go to the source code of this file.
Functions | |
| static void | sound_free (sound_data_struct *tmp) |
| void | sound_init () |
| void | sound_deinit () |
| static void | sound_add_effect (const char *filename, int volume, int loop) |
| void | sound_play_effect (const char *filename, int volume) |
| void | sound_start_bg_music (const char *filename, int volume, int loop) |
| void | sound_stop_bg_music () |
| void | update_map_bg_music (const char *bg_music) |
| void | sound_update_volume () |
| const char * | sound_get_bg_music () |
| const char * | sound_get_bg_music_basename () |
| uint8 | sound_map_background (int new) |
| void | SoundCmd (uint8 *data, int len) |
| void | sound_pause_music () |
| void | sound_resume_music () |
| int | sound_playing_music () |
Variables | |
| static char * | sound_background |
| static uint8 | sound_map_background_disabled = 0 |
| static sound_data_struct * | sound_data |
| static size_t | sound_data_num |
| static uint8 | enabled = 0 |
Sound related functions.
Definition in file sound.c.
| static void sound_add_effect | ( | const char * | filename, |
| int | volume, | ||
| int | loop | ||
| ) | [static] |
| static void sound_free | ( | sound_data_struct * | tmp | ) | [static] |
| const char* sound_get_bg_music | ( | ) |
| const char* sound_get_bg_music_basename | ( | ) |
| uint8 sound_map_background | ( | int | new | ) |
Get or set sound_map_background_disabled.
| new | If -1, will return the current value of sound_map_background_disabled; any other value will set sound_map_background_disabled to that value. |
| void sound_play_effect | ( | const char * | filename, |
| int | volume | ||
| ) |
| int sound_playing_music | ( | ) |
| void sound_resume_music | ( | ) |
| void sound_start_bg_music | ( | const char * | filename, |
| int | volume, | ||
| int | loop | ||
| ) |
| void sound_stop_bg_music | ( | ) |
| void sound_update_volume | ( | ) |
| void SoundCmd | ( | uint8 * | data, |
| int | len | ||
| ) |
| void update_map_bg_music | ( | const char * | bg_music | ) |
char* sound_background [static] |
sound_data_struct* sound_data [static] |
size_t sound_data_num [static] |
Number of sound_data.
uint8 sound_map_background_disabled = 0 [static] |
1.7.4