Source-1-Games icon indicating copy to clipboard operation
Source-1-Games copied to clipboard

[TF2][x64_test] Trying to play 'vo/null.mp3' will result in error

Open naydef opened this issue 1 year ago • 1 comments

In 32-bit TF2 client this sound can be played normally and it doesn't result in error. In 64-bit however, it does print error in console.

] play vo/null.mp3
Failed to find sample rate creating cache data for MP3, cache will be invalid [ vo/null.mp3 ]
*** Invalid sample rate (0) for sound 'vo/null.mp3'.
] play vo/null.mp3
*** Invalid sample rate (0) for sound 'vo/null.mp3'.
] play vo/null.mp3
*** Invalid sample rate (0) for sound 'vo/null.mp3'.
] play vo/null.mp3
*** Invalid sample rate (0) for sound 'vo/null.mp3'.
] play vo/null.mp3
*** Invalid sample rate (0) for sound 'vo/null.mp3'.
] play vo/null.mp3
*** Invalid sample rate (0) for sound 'vo/null.mp3'.

Some SM plugins rely on this sound existing which they use as placeholder when no sound should be played...

naydef avatar Feb 13 '24 12:02 naydef

I guess code that uses this sound must switch to misc/null.wav, which seems to work fine.

naydef avatar Mar 10 '24 19:03 naydef