Quake3World.com Forums
     Programming Discussion
        MP3 decoder (mp3 to wav/menu converter q3-playable format)


Post new topicReply to topic
Login | Profile | | FAQ | Search | IRC




Print view Previous topic | Next topic 
Topic Starter Topic: MP3 decoder (mp3 to wav/menu converter q3-playable format)

Commander
Commander
Joined: 08 Jun 2022
Posts: 100
PostPosted: 08-31-2023 02:19 AM           Profile Send private message  E-mail  Edit post Reply with quote


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.




Top
                 

Cool #9
Cool #9
Joined: 01 Dec 2000
Posts: 44139
PostPosted: 08-31-2023 03:10 AM           Profile   Send private message  E-mail  Edit post Reply with quote


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/




Top
                 

Commander
Commander
Joined: 08 Jun 2022
Posts: 100
PostPosted: 08-31-2023 03:14 AM           Profile Send private message  E-mail  Edit post Reply with quote


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




Last edited by LegendGuard on 02-08-2024 01:51 AM, edited 2 times in total.

Top
                 

Commander
Commander
Joined: 08 Jun 2022
Posts: 100
PostPosted: 10-02-2023 03:08 AM           Profile Send private message  E-mail  Edit post Reply with quote


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.




Top
                 
Quake3World.com | Forum Index | Programming Discussion


Post new topic Reply to topic


cron
Quake3World.com
© ZeniMax. Zenimax, QUAKE III ARENA, Id Software and associated trademarks are trademarks of the ZeniMax group of companies. All rights reserved.
This is an unofficial fan website without any affiliation with or endorsement by ZeniMax.
All views and opinions expressed are those of the author.