File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ static qboolean trackFinished = false;
55
55
static cvar_t * cd_volume ;
56
56
static cvar_t * cd_loopcount ;
57
57
static cvar_t * cd_looptrack ;
58
+ static cvar_t * no_music ;
58
59
59
60
#ifdef __APPLE__
60
61
static ma_uint32 periodSizeInFrames ;
@@ -197,7 +198,8 @@ void Miniaudio_Init(void)
197
198
cd_volume = Cvar_Get ("cd_volume" , "1" , CVAR_ARCHIVE );
198
199
cd_loopcount = Cvar_Get ("cd_loopcount" , "4" , 0 );
199
200
cd_looptrack = Cvar_Get ("cd_looptrack" , "11" , 0 );
200
- enabled = true;
201
+ no_music = Cvar_Get ("no_music" , "0" , 0 );
202
+ enabled = no_music -> value == 0 ;
201
203
paused = false;
202
204
203
205
#ifdef __APPLE__
@@ -300,6 +302,9 @@ void Miniaudio_Stop(void)
300
302
301
303
void Miniaudio_Update (void )
302
304
{
305
+ if (no_music -> value != 0 )
306
+ return ;
307
+
303
308
if (cd_volume -> modified )
304
309
{
305
310
cd_volume -> modified = false;
You can’t perform that action at this time.
0 commit comments