engine: client: add support for "mp3 playfile/loopfile" commands.
This commit is contained in:
parent
e161ff0f7a
commit
a34c22fb10
1 changed files with 12 additions and 0 deletions
|
@ -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 )
|
|||
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…
Add table
Reference in a new issue