$treeview $search $mathjax
Stratagus  2.2.6
$projectbrief
$projectbrief
$searchbox
-->
         _________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
           Stratagus - A free fantasy real time strategy game engine

src/sound/music.cpp File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "stratagus.h"
#include "SDL.h"
#include "sound_server.h"
#include "script.h"

music.cpp - Background music support

#define SoundFrequency   44100
static SDL_mutex * MusicFinishedMutex
static bool MusicFinished
 Mutex for MusicFinished.
bool CallbackMusic
 Music ended and we need a new file.
static void MusicFinishedCallback ()
 flag true callback ccl if stops
void CheckMusicFinished (bool force)
 Check if music is finished and play the next song.
void InitMusic ()
 Initialize music.

Define Documentation

#define SoundFrequency   44100


Function Documentation

void CheckMusicFinished ( bool  force  ) 

Check if music is finished and play the next song.

Check if music is finished and play the next song

void InitMusic (  ) 

Initialize music.

Init music

static void MusicFinishedCallback (  )  [static]

flag true callback ccl if stops

Callback for when music has finished Note: we are in the sdl audio thread


Variable Documentation

Music ended and we need a new file.

Game sound configuration.

bool MusicFinished [static]

Mutex for MusicFinished.

SDL_mutex* MusicFinishedMutex [static]

(C) Copyright 1998-2011 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.