|
|
@ -95,7 +95,7 @@ void S_StartBackgroundTrack( const char *introTrack, const char *mainTrack, int |
|
|
|
else Q_strncpy( s_bgTrack.loopName, mainTrack, sizeof( s_bgTrack.loopName )); |
|
|
|
else Q_strncpy( s_bgTrack.loopName, mainTrack, sizeof( s_bgTrack.loopName )); |
|
|
|
|
|
|
|
|
|
|
|
// open stream
|
|
|
|
// open stream
|
|
|
|
s_bgTrack.stream = FS_OpenStream( va( "media/%s", introTrack )); |
|
|
|
s_bgTrack.stream = FS_OpenStream( introTrack ); |
|
|
|
Q_strncpy( s_bgTrack.current, introTrack, sizeof( s_bgTrack.current )); |
|
|
|
Q_strncpy( s_bgTrack.current, introTrack, sizeof( s_bgTrack.current )); |
|
|
|
memset( &musicfade, 0, sizeof( musicfade )); // clear any soundfade
|
|
|
|
memset( &musicfade, 0, sizeof( musicfade )); // clear any soundfade
|
|
|
|
s_bgTrack.source = cls.key_dest; |
|
|
|
s_bgTrack.source = cls.key_dest; |
|
|
@ -242,7 +242,7 @@ void S_StreamBackgroundTrack( void ) |
|
|
|
if( s_bgTrack.loopName[0] ) |
|
|
|
if( s_bgTrack.loopName[0] ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
FS_FreeStream( s_bgTrack.stream ); |
|
|
|
FS_FreeStream( s_bgTrack.stream ); |
|
|
|
s_bgTrack.stream = FS_OpenStream( va( "media/%s", s_bgTrack.loopName )); |
|
|
|
s_bgTrack.stream = FS_OpenStream( s_bgTrack.loopName ); |
|
|
|
Q_strncpy( s_bgTrack.current, s_bgTrack.loopName, sizeof( s_bgTrack.current )); |
|
|
|
Q_strncpy( s_bgTrack.current, s_bgTrack.loopName, sizeof( s_bgTrack.current )); |
|
|
|
|
|
|
|
|
|
|
|
if( !s_bgTrack.stream ) return; |
|
|
|
if( !s_bgTrack.stream ) return; |
|
|
|