mirror of
https://github.com/celisej567/source-sdk-2013.git
synced 2026-01-05 18:09:46 +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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user