We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a999c79 commit 359fcb7Copy full SHA for 359fcb7
sp/src/game/shared/SoundEmitterSystem.cpp
@@ -1001,7 +1001,11 @@ class CSoundEmitterSystem : public CBaseGameSystem
1001
1002
if ( duration )
1003
{
1004
- *duration = enginesound->GetSoundDuration( pSample );
+ if ( Q_stristr( pSample, ".mp3" ) ) {
1005
+ *duration = 0;
1006
+ } else {
1007
+ *duration = enginesound->GetSoundDuration( pSample );
1008
+ }
1009
}
1010
1011
TraceEmitSound( "EmitAmbientSound: Raw wave emitted '%s' (ent %i)\n",
0 commit comments