Ditch attempts trying to obtain sound duration of MP3s

Crashes on Linux. Apparently returns incorrect values on Windows.
This commit is contained in:
Alexander 'z33ky' Hirsch 2024-09-05 23:45:20 +02:00
parent a999c794f7
commit 359fcb7196

View File

@ -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",