Freeciv-3.1: /fast/freeciv/nightly/S3_1/client/music.c File Reference

Freeciv-3.1

Loading...
Searching...
No Matches
Functions
music.c File Reference
`#include <stdio.h>`
`#include <stdlib.h>`
`#include <string.h>`
`#include "connection.h"`
`#include "log.h"`
`#include "audio.h"`
`#include "client_main.h"`
`#include "options.h"`
`#include "music.h"`

Go to the source code of this file.

## Functions

void | start_style_music (void)
void | stop_style_music (void)
void | start_menu_music (const char *const tag, char *const alt_tag)
void | stop_menu_music (void)
void | play_single_track (const char *const tag)
void | musicspec_reread_callback (struct option *poption)

## Function Documentation

## ◆ musicspec_reread_callback()

void musicspec_reread_callback | ( | struct option * | poption | ) |

Musicset changed in options.

Definition at line 121 of file music.c.

## ◆ play_single_track()

void play_single_track | ( | const char *const | tag | ) |

Play single track before continuing normal style music

Definition at line 108 of file music.c.

Referenced by handle_play_music().

## ◆ start_menu_music()

void start_menu_music | ( | const char *const | tag,
|  | char *const | alt_tag
| ) |  |

Start menu music.

Definition at line 90 of file music.c.

Referenced by client_main(), handle_endgame_player(), musicspec_reread_callback(), and set_client_state().

## ◆ start_style_music()

void start_style_music | ( | void |  | ) |

Start music suitable for current game situation

Definition at line 36 of file music.c.

Referenced by handle_player_info(), musicspec_reread_callback(), and set_client_state().

## ◆ stop_menu_music()

void stop_menu_music | ( | void |  | ) |

Stop menu music completely.

Definition at line 100 of file music.c.

Referenced by set_client_state().

## ◆ stop_style_music()

void stop_style_music | ( | void |  | ) |

Stop style music completely.

Definition at line 82 of file music.c.

Referenced by set_client_state(), and start_style_music().