Quake3World.com
https://www.quake3world.com/forum/

MP3 decoder (mp3 to wav/menu converter q3-playable format)
https://www.quake3world.com/forum/viewtopic.php?f=16&t=55020
Page 1 of 1

Author:  LegendGuard [ 08-31-2023 02:19 AM ]
Post subject:  MP3 decoder (mp3 to wav/menu converter q3-playable format)

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.

Author:  Eraser [ 08-31-2023 03:10 AM ]
Post subject:  Re: MP3 decoder (mp3 to wav/menu converter q3-playable format)

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/

Author:  LegendGuard [ 08-31-2023 03:14 AM ]
Post subject:  Re: MP3 decoder (mp3 to wav/menu converter q3-playable format)

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:
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

Author:  LegendGuard [ 10-02-2023 03:08 AM ]
Post subject:  Re: MP3 decoder (mp3 to wav/menu converter q3-playable format)

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.

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/