Back to index

extremetuxracer  0.5beta
Functions
audio_data.cpp File Reference
#include "audio_data.h"
#include "audio.h"

Go to the source code of this file.

Functions

void init_audio_data ()
bool load_sound (char *name, char *filename)
bool load_music (char *name, char *filename)
bool get_sound_data (char *name, Mix_Chunk **data)
bool get_music_data (char *name, Mix_Music **data)
void set_music_playing_status (char *name, bool playing)
bool get_music_playing_status (char *name)
void incr_sound_data_ref_ctr (char *name)
void decr_sound_data_ref_ctr (char *name)
void incr_music_data_ref_ctr (char *name)
void decr_music_data_ref_ctr (char *name)
void delete_unused_audio_data ()
bool is_sound_data_dirty ()
bool is_music_data_dirty ()
void mark_sound_data_clean ()
void mark_music_data_clean ()
static int load_sound_cb (ClientData cd, Tcl_Interp *ip, int argc, CONST84 char *argv[])
static int load_music_cb (ClientData cd, Tcl_Interp *ip, int argc, CONST84 char *argv[])
void register_sound_data_tcl_callbacks (Tcl_Interp *ip)

Function Documentation

void decr_music_data_ref_ctr ( char *  name)

Definition at line 656 of file audio_data.cpp.

{
}
void decr_sound_data_ref_ctr ( char *  name)

Definition at line 648 of file audio_data.cpp.

{
}

Definition at line 660 of file audio_data.cpp.

{
}

Here is the caller graph for this function:

bool get_music_data ( char *  name,
Mix_Music **  data 
)

Definition at line 627 of file audio_data.cpp.

{
    return false;
}
bool get_music_playing_status ( char *  name)

Definition at line 639 of file audio_data.cpp.

{
    return false;
}
bool get_sound_data ( char *  name,
Mix_Chunk **  data 
)

Definition at line 621 of file audio_data.cpp.

{
    return false;
}
void incr_music_data_ref_ctr ( char *  name)

Definition at line 652 of file audio_data.cpp.

{
}
void incr_sound_data_ref_ctr ( char *  name)

Definition at line 644 of file audio_data.cpp.

{
}
void init_audio_data ( )

Definition at line 604 of file audio_data.cpp.

{
}

Here is the caller graph for this function:

Definition at line 671 of file audio_data.cpp.

{
    return false;
}

Definition at line 665 of file audio_data.cpp.

{
    return false;
}
bool load_music ( char *  name,
char *  filename 
)

Definition at line 615 of file audio_data.cpp.

{ 
    return true;
}
static int load_music_cb ( ClientData  cd,
Tcl_Interp *  ip,
int  argc,
CONST84 char *  argv[] 
) [static]

Definition at line 697 of file audio_data.cpp.

{
    Tcl_Obj *result;

    result = Tcl_NewBooleanObj( 1 );
    Tcl_SetObjResult( ip, result );
    return TCL_OK;
} 

Here is the caller graph for this function:

bool load_sound ( char *  name,
char *  filename 
)

Definition at line 609 of file audio_data.cpp.

{ 
    return true;
}
static int load_sound_cb ( ClientData  cd,
Tcl_Interp *  ip,
int  argc,
CONST84 char *  argv[] 
) [static]

Definition at line 687 of file audio_data.cpp.

{
    Tcl_Obj *result;

    result = Tcl_NewBooleanObj( 1 );
    Tcl_SetObjResult( ip, result );
    return TCL_OK;
} 

Here is the caller graph for this function:

Definition at line 682 of file audio_data.cpp.

{
}

Definition at line 677 of file audio_data.cpp.

{
}
void register_sound_data_tcl_callbacks ( Tcl_Interp *  ip)

Definition at line 708 of file audio_data.cpp.

{
    Tcl_CreateCommand (ip, "tux_load_sound", load_sound_cb,  0,0);
    Tcl_CreateCommand (ip, "tux_load_music", load_music_cb,  0,0);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void set_music_playing_status ( char *  name,
bool  playing 
)

Definition at line 633 of file audio_data.cpp.

{
}