Browse Source

engine: client: add support for "mp3 playfile/loopfile" commands.

pull/2/head
Andrey Akhmichin 1 year ago committed by Alibek Omarov
parent
commit
a34c22fb10
  1. 12
      engine/client/cl_cmds.c

12
engine/client/cl_cmds.c

@ -85,6 +85,12 @@ void CL_PlayCDTrack_f( void ) @@ -85,6 +85,12 @@ void CL_PlayCDTrack_f( void )
paused = false;
looped = false;
}
else if( !Q_stricmp( command, "playfile" ))
{
S_StartBackgroundTrack( pszTrack, NULL, 0, true );
paused = false;
looped = false;
}
else if( !Q_stricmp( command, "loop" ))
{
if( Q_isdigit( pszTrack ))
@ -96,6 +102,12 @@ void CL_PlayCDTrack_f( void ) @@ -96,6 +102,12 @@ void CL_PlayCDTrack_f( void )
paused = false;
looped = true;
}
else if( !Q_stricmp( command, "loopfile" ))
{
S_StartBackgroundTrack( pszTrack, pszTrack, 0, true );
paused = false;
looped = true;
}
else if( !Q_stricmp( command, "pause" ))
{
S_StreamSetPause( true );

Loading…
Cancel
Save