|
UFO: Alien Invasion
|
Specifies music API. More...
#include "../../shared/ufotypes.h"

Go to the source code of this file.
Data Structures | |
| struct | musicStream_t |
Macros | |
| #define | SAMPLE_SIZE 4 |
| #define | MAX_RAW_SAMPLES 4096 * SAMPLE_SIZE |
Functions | |
| void | M_AddToSampleBuffer (musicStream_t *userdata, int rate, int samples, const byte *data) |
| Add stereo samples with a 16 byte width to the stream buffer. | |
| void | M_StopMusicStream (musicStream_t *userdata) |
| void | M_ParseMusic (const char *name, const char **text) |
| Parses music definitions for different situations. | |
| void | M_Frame (void) |
| void | M_Init (void) |
| void | M_Shutdown (void) |
| void | M_Stop (void) |
Specifies music API.
Definition in file s_music.h.
| #define MAX_RAW_SAMPLES 4096 * SAMPLE_SIZE |
Definition at line 35 of file s_music.h.
Referenced by M_AddToSampleBuffer(), and M_MusicStreamCallback().
| void M_AddToSampleBuffer | ( | musicStream_t * | userdata, |
| int | rate, | ||
| int | samples, | ||
| const byte * | data ) |
Add stereo samples with a 16 byte width to the stream buffer.
| [in] | samples | The amount of stereo samples that should be added to the stream buffer (this is usually 1/4 of the size of the data buffer, one sample should have 4 bytes, 2 for each channel) |
| [in] | data | The stereo sample buffer |
| [in,out] | userdata | The music stream |
| [in] | rate | The sample rate |
Definition at line 428 of file s_music.cpp.
References data, i, s_env_t::initialized, LittleShort, M_AddToSampleBuffer(), M_PlayMusicStream(), MAX_RAW_SAMPLES, s_env_t::rate, s_env, musicStream_t::sampleBuf, and musicStream_t::samplePos.
Referenced by CIN_OGM_LoadAudioFrame(), CIN_ROQ_DecodeSoundMono(), CIN_ROQ_DecodeSoundStereo(), and M_AddToSampleBuffer().
Definition at line 314 of file s_music.cpp.
References music_t::category, music_t::currentTrack, cvar_t::integer, M_Frame(), M_MusicStreamUpdate(), M_PlayRandomByCategory(), M_Start(), M_Stop(), cvar_t::modified, music, music_t::nextTrack, music_t::playing, music_t::playingStream, Q_strvalid, snd_music, snd_music_play, snd_music_volume, and cvar_t::string.
Definition at line 356 of file s_music.cpp.
References Cmd_AddParamCompleteFunction(), Cmd_Exists(), Cmd_RemoveCommand(), Cmd_TableAddList(), CVAR_ARCHIVE, Cvar_Get(), cvar_t::integer, M_CompleteMusic(), M_Init(), cvar_t::modified, music, musicCmds, music_t::playing, snd_music, snd_music_play, and snd_music_volume.
| void M_ParseMusic | ( | const char * | name, |
| const char ** | text ) |
Parses music definitions for different situations.
Definition at line 73 of file s_music.cpp.
References cl_genericPool, Com_Error(), Com_ParseList(), Com_Printf(), ERR_DROP, i, LIST_Delete(), M_ParseMusic(), Mem_PoolStrDup, MUSIC_AIRCOMBAT, MUSIC_BATTLESCAPE, MUSIC_GEOSCAPE, MUSIC_MAIN, MUSIC_MAX_ENTRIES, musicArrayLength, musicArrays, name, linkedList_t::next, and Q_streq.
Referenced by CL_ParseClientData(), and M_ParseMusic().
Definition at line 369 of file s_music.cpp.
References Cmd_TableRemoveList(), M_Shutdown(), M_Stop(), and musicCmds.
Referenced by M_Shutdown(), and S_Shutdown().
Definition at line 114 of file s_music.cpp.
References music_t::buffer, music_t::data, FS_FreeFile(), M_Stop(), music, and music_t::playingStream.
Referenced by M_Frame(), M_PlayMusicStream(), M_Shutdown(), M_Start(), and M_Stop().
| void M_StopMusicStream | ( | musicStream_t * | userdata | ) |
Definition at line 462 of file s_music.cpp.
References music_t::interruptStream, M_StopMusicStream(), music, musicStream_t::playing, and music_t::playingStream.
Referenced by CIN_OGM_CloseCinematic(), CIN_ROQ_CloseCinematic(), M_MusicStreamUpdate(), and M_StopMusicStream().