mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-02-24 04:31:11 +03:00
Ditch attempts trying to obtain sound duration of MP3s
Crashes on Linux. Apparently returns incorrect values on Windows.
This commit is contained in:
parent
a999c794f7
commit
359fcb7196
@ -1001,7 +1001,11 @@ public:
|
||||
|
||||
if ( duration )
|
||||
{
|
||||
*duration = enginesound->GetSoundDuration( pSample );
|
||||
if ( Q_stristr( pSample, ".mp3" ) ) {
|
||||
*duration = 0;
|
||||
} else {
|
||||
*duration = enginesound->GetSoundDuration( pSample );
|
||||
}
|
||||
}
|
||||
|
||||
TraceEmitSound( "EmitAmbientSound: Raw wave emitted '%s' (ent %i)\n",
|
||||
|
Loading…
x
Reference in New Issue
Block a user