#include <windows.h>
#include "miniaudio/dr_flac.h"
#include "miniaudio/dr_mp3.h"
#include "miniaudio/dr_wav.h"
#include "miniaudio/stb_vorbis.c"
#include "miniaudio.h"
#include "../client/client.h"
Go to the source code of this file.
Macros | |
#define | DR_FLAC_IMPLEMENTATION |
#define | DR_MP3_IMPLEMENTATION |
#define | DR_WAV_IMPLEMENTATION |
#define | MINIAUDIO_IMPLEMENTATION |
Functions | |
static void | data_callback (ma_device *pDevice, void *pOutput, const void *pInput, ma_uint32 frameCount) |
static void | Miniaudio_Pause (void) |
static void | Miniaudio_Resume (void) |
static void | Miniaudio_f (void) |
void | Miniaudio_Init (void) |
static ma_result | LoadTrack (const char *gamedir, int track) |
void | Miniaudio_Play (int track, qboolean looping) |
void | Miniaudio_Stop (void) |
void | Miniaudio_Update (void) |
void | Miniaudio_Shutdown (void) |
Variables | |
static ma_decoder | decoder |
static ma_device | device |
static int | loopcounter |
static int | playTrack = 0 |
static qboolean | enabled = true |
static qboolean | paused = false |
static qboolean | playLooping = false |
static qboolean | trackFinished = false |
static cvar_t * | cd_nocd |
static cvar_t * | cd_loopcount |
static cvar_t * | cd_looptrack |
#define DR_FLAC_IMPLEMENTATION |
Definition at line 32 of file snd_miniaudio.c.
#define DR_MP3_IMPLEMENTATION |
Definition at line 34 of file snd_miniaudio.c.
#define DR_WAV_IMPLEMENTATION |
Definition at line 36 of file snd_miniaudio.c.
#define MINIAUDIO_IMPLEMENTATION |
Definition at line 41 of file snd_miniaudio.c.
|
static |
Definition at line 209 of file snd_miniaudio.c.
Referenced by Miniaudio_Play().
Definition at line 195 of file snd_miniaudio.c.
Referenced by CL_Init().
Definition at line 107 of file snd_miniaudio.c.
Referenced by Miniaudio_f(), Miniaudio_Play(), and Miniaudio_Update().
Definition at line 225 of file snd_miniaudio.c.
Referenced by CL_ParseConfigString(), CL_PrepRefresh(), Miniaudio_f(), and Miniaudio_Update().
Definition at line 116 of file snd_miniaudio.c.
Referenced by Miniaudio_f(), and Miniaudio_Update().
Definition at line 352 of file snd_miniaudio.c.
Referenced by CL_Shutdown().
Definition at line 287 of file snd_miniaudio.c.
Referenced by Miniaudio_f(), Miniaudio_Play(), Miniaudio_Shutdown(), Miniaudio_Update(), SCR_BeginLoadingPlaque(), and SCR_PlayCinematic().
|
static |
Definition at line 56 of file snd_miniaudio.c.
Referenced by Miniaudio_Init(), and Miniaudio_Update().
|
static |
Definition at line 57 of file snd_miniaudio.c.
Referenced by Miniaudio_Init(), and Miniaudio_Update().
|
static |
Definition at line 55 of file snd_miniaudio.c.
Referenced by Miniaudio_Init(), and Miniaudio_Update().
|
static |
Definition at line 46 of file snd_miniaudio.c.
Referenced by LoadTrack(), Miniaudio_Play(), Miniaudio_Stop(), and Miniaudio_Update().
|
static |
Definition at line 47 of file snd_miniaudio.c.
Referenced by Miniaudio_f(), Miniaudio_Pause(), Miniaudio_Play(), Miniaudio_Resume(), Miniaudio_Stop(), and Miniaudio_Update().
Definition at line 50 of file snd_miniaudio.c.
Referenced by Miniaudio_f(), Miniaudio_Init(), Miniaudio_Pause(), Miniaudio_Play(), Miniaudio_Resume(), Miniaudio_Stop(), and Miniaudio_Update().
|
static |
Definition at line 48 of file snd_miniaudio.c.
Referenced by Miniaudio_Play(), and Miniaudio_Update().
Definition at line 51 of file snd_miniaudio.c.
Referenced by Miniaudio_f(), Miniaudio_Init(), Miniaudio_Pause(), Miniaudio_Play(), Miniaudio_Resume(), Miniaudio_Stop(), and Miniaudio_Update().
Definition at line 52 of file snd_miniaudio.c.
Referenced by Miniaudio_f(), Miniaudio_Play(), and Miniaudio_Update().
|
static |
Definition at line 49 of file snd_miniaudio.c.
Referenced by Miniaudio_f(), Miniaudio_Play(), Miniaudio_Stop(), and Miniaudio_Update().
Definition at line 53 of file snd_miniaudio.c.
Referenced by data_callback(), Miniaudio_Play(), and Miniaudio_Update().