multitheftauto / mtasa-blue

Multi Theft Auto is a game engine that incorporates an extendable network play element into a proprietary commercial single-player game.
https://multitheftauto.com
GNU General Public License v3.0
1.3k stars 412 forks source link

OGG sound files can't be played as RAW data. #3495

Closed Daniheee closed 6 days ago

Daniheee commented 1 week ago

Describe the bug

If you use fileRead() and try to play a sound with that result (raw data), you will receive an error in the F8 console, and the sound won't be played. This issue only occurs with OGG files. I have tried this with MP3 and WAV files, and it works perfectly. I have also tried various export and conversion settings for OGG sound files, but none of them seem to work.

The error in the console: BASS ERROR 2 in LoadMedia path:E:\Multi Theft Auto 1.6\mods\deathmatch\resources\soundtest\OggS 3d:0 loop:0

The test resource with the sound files: soundtest_resource.zip

Steps to reproduce

  1. Download the test resource and run it.
  2. Check your debugscript, you will see that, only the 'soundOGG_raw' variable will return false.

Version

Client: v1.6-release-22512 (Windows 10, 64-bit) Server: v1.6-release-21890 (Windows 10, 64-bit)

Additional context

No response

Relevant log output

No response

Security Policy