Freeciv-3.2
|
#include "support.h"
Go to the source code of this file.
Data Structures | |
struct | audio_plugin |
Macros | |
#define | MAX_AUDIO_NAME_LEN 20 |
#define | MAX_AUDIO_DESCR_LEN 200 |
#define | MAX_ALT_AUDIO_FILES 25 |
Typedefs | |
typedef void(* | audio_finished_callback) (void) |
Enumerations | |
enum | music_usage { MU_MENU , MU_INGAME } |
void audio_add_plugin | ( | struct audio_plugin * | p | ) |
Add a plugin.
Definition at line 136 of file audio.c.
Referenced by audio_none_init(), and audio_sdl_init().
Returns a string which list all available plugins. You don't have to free the string.
Definition at line 694 of file audio.c.
Referenced by audio_select_plugin(), and client_main().
Initialize base audio system. Note that this function is called very early at the client startup. So for example logging isn't available.
Definition at line 188 of file audio.c.
Referenced by client_main().
Loop music as suggested by sound tags
Definition at line 578 of file audio.c.
Referenced by start_menu_music(), and start_style_music().
void audio_play_sound | ( | const char *const | tag, |
const char *const | alt_tag, | ||
const char *const | alt_tag2 | ||
) |
Play an audio sample as suggested by sound tags
Definition at line 528 of file audio.c.
Referenced by audio_shutdown(), disconnect_from_server(), do_move_unit(), handle_city_info(), handle_player_info(), handle_unit_combat_info(), play_sound_for_event(), qtg_real_output_window_append(), and set_client_state().
Play single track as suggested by sound tags
Definition at line 589 of file audio.c.
Referenced by play_single_track().
void audio_real_init | ( | const char *const | soundset_name, |
const char *const | musicset_name, | ||
const char *const | preferred_plugin_name | ||
) |
Initialize audio system and autoselect a plugin
Definition at line 274 of file audio.c.
Referenced by audio_restart(), and client_main().
Switch soundset
Definition at line 376 of file audio.c.
Referenced by handle_ruleset_control(), musicset_suggestion_callback(), musicset_suggestion_response(), musicspec_reread_callback(), popup_musicset_suggestion_dialog(), popup_soundset_suggestion_dialog(), soundset_suggestion_callback(), and soundset_suggestion_response().
Choose plugin. Returns TRUE on success, FALSE if not
Definition at line 146 of file audio.c.
Referenced by audio_real_init().
Call this at end of program only.
play_quit_tag | Play exit sound |
Definition at line 657 of file audio.c.
Referenced by audio_shutdown_atexit(), and client_exit().
Stop sound. Music should die down in a few seconds.
Definition at line 622 of file audio.c.
Referenced by audio_play_track(), audio_restart(), and audio_shutdown().
Stop looping sound. Music should die down in a few seconds.
Definition at line 630 of file audio.c.
Referenced by stop_menu_music(), and stop_style_music().
Returns a static string vector of all sound plugins available on the system. This function is unfortunately similar to audio_get_all_plugin_names().