Page 1 of 1

MP3 decoder (mp3 to wav/menu converter q3-playable format)

Posted: Thu Aug 31, 2023 10:19 am
by LegendGuard
I found the MP3 decoder in https://sourceforge.net/projects/tremul ... ulous/1.0/ using tremulous-q3-1.0.0-installer.exe to install the source code.

The purpose for what I wanted to use is to match a button of UI main menu from an ancient mod, here's the commit:
https://github.com/LegendaryGuard/BFP/c ... ca7c8b3485

That's why the mod had this, read carefully this old dev journal:

mp3 support - 11/30/2001 by Yrgol

I added Tim "Timbo" Angus' mp3 to wav converter into bfp. It can be found at http://tremulous.sourceforge.net/junk/cg_mp3decoder/
This will allow us to include more music in the download, since each music file will have a smaller filesize.
This will not allow you to play your own mp3's. It is not an mp3 player, it is an in-game utility to convert mp3's into a q3-playable format.


Nowadays, using this feature is unnecessary and pretty outdated.

Maybe it would be worth to implement a MP3 codec to play MP3 files for the engine instead making a library altered to compile for the Q3 VM.

Re: MP3 decoder (mp3 to wav/menu converter q3-playable format)

Posted: Thu Aug 31, 2023 11:10 am
by Eraser
Doesn't ioQuake support mp3 playback? Or maybe just OGG perhaps.

edit: yes it does. Both Mp3 and OGG: https://ioquake3.org/the-site/mp3-support/

Re: MP3 decoder (mp3 to wav/menu converter q3-playable format)

Posted: Thu Aug 31, 2023 11:14 am
by LegendGuard
Eraser wrote:Doesn't ioQuake support mp3 playback? Or maybe just OGG perhaps.

edit: yes it does. Both Mp3 and OGG: https://ioquake3.org/the-site/mp3-support/
I tried to run this command: music music/RogerSullivan-touch_of_the_sun.mp3
and says:

Code: Select all

WARNING: Failed to open sound music/RogerSullivan-touch_of_the_sun.mp3
What that MP3 decoder does is using a .mp3 file inside music/ and converting into .menu extension (it could be .wav too). It creates a folder and the resulting converted file.
This converter feature works on Quake3e and Quake 3 1.32 - 1.32c vanilla version, but on ioQuake3 only works if the mp3 file is in C:\Users\username\AppData\Roaming\Quake3\modfolder\music\ in Windows.

Explanation crosslink: https://discourse.ioquake.org/t/audio-p ... wer/1772/6

Re: MP3 decoder (mp3 to wav/menu converter q3-playable format)

Posted: Mon Oct 02, 2023 11:08 am
by LegendGuard
OMG, 20000 views. I never expected that.
Apparently, it has attracted a lot of attention.

Since this is a MP3 decoder that modifies only the QVMs, that isn't tweaking the engine side.
Kinda rare ancient feature.