Back to the Vavoom Forum Archives


Forum

[Implemented] MP3 Support

Fri, 02 Aug 2002 15:01:52

roy5050

Does Beta 114/VaVoom 113 handle MP3--<br>if not when will VaVoom handle MP3 music.<br><br>Will it be possible to translate Playlist.DDF<br>the MP3 playlist used by Edge into a format<br>that VaVoom can understand.<br><br>Does openAL handle MP3s or just 3d Sfx.<br><br>What library are you planning on using for<br>MP3 support & have you started adding it<br>into VaVoom yet.<br><br>Thanks.
Sat, 03 Aug 2002 03:19:49

Janis Legzdinsh

Does Beta 114/VaVoom 113 handle MP3 -- if not when will VaVoom handle MP3 music.
<br>No, it doesn't. And actually I'm planing to support Ogg Vorbis format, which is better than MP3. MP3 support possibly also will be here.<br><br>
Will it be possible to translate Playlist.DDF the MP3 playlist used by Edge into a format that VaVoom can understand.
<br>There should be no problems.<br><br>
Does openAL handle MP3s or just 3d Sfx.
<br>OpenAL has buffer queues, and streaming is just one of the possible uses of them.<br><br>
What library are you planning on using for MP3 support & have you started adding it into VaVoom yet.
<br>I haven't started anything and I don't know what format I will use.<br>
Sat, 03 Aug 2002 22:15:08

moose

I've only come accross OGG files once befor and that was the sound and music for DN:MP, so adding MP3 support would be more handy at the moment.
Mon, 05 Aug 2002 16:47:39

JinnaiGuy

I've added MP3 support as a hack for my personal Vavoom project.  It's a very simple implementation using the mostly external FMOD free sound library, with a few program "hop-arounds" Janis' code.<br><br>I do call it a hack because it requires MP3's in a /basev/[game]/mp3 directory, relative to the executable, and it's loaded by a simple file check that effectively overrides the WAD entry; that is, it first looks to see if the physical [resource].MP3 file exists, and if not, proceeds with the basic tests.<br><br>Example, Console Command Sent:<br><br>MUSIC PLAY D_RUNNIN<br><br>Does basev/doom2/mp3/D_RUNNIN.MP3 exist?<br><br>* Yes:<br>Load and play via FMOD stream functions<br><br>* No:<br>If in dev mode, look for archive files, otherwise scan WAD for D_RUNNIN...<br><br><br>And of course I added basic trip logic, when STOP or PLAY/LOOP commands are sent to stop either DirectMusic or FMOD, whichever is playing...<br><br>It actually works very nicely, is available multi-platform, and would be a simple addition if Janis isn't terribly interested in making a complicated MP3 support handler.
Tue, 06 Aug 2002 04:29:28

Janis Legzdinsh

moose: The main problem with MP3 is copyrights, while Ogg Vorbis is non-proprietary and patent-and-royalty-free. But since I'm not a guy who cares much about copyrights. ;D Vorbis isn't very popular because it's very new format, the final version was released in 19 july, i.e. some weeks ago. In a case you're interested, you can find more info here.<br><br>JinnaiGuy: I would like to see how you did it. maybe you could send me the changed files.<br><br>
Tue, 06 Aug 2002 12:50:18

JinnaiGuy

I'll just show you the changes.<br><br>[font=Fixedsys]#include <fmod.h> // Of course<br><br>[...]<br><br>// PRIVATE DATA DEFINITIONS ------------------------------------------------<br><br>static FSOUND_STREAM *MP3 = NULL;<br><br>[...]<br><br>//
Tue, 06 Aug 2002 15:06:46

roy5050

Think About adding the mp3 code<br>to the next release of posting the files<br>needed to patch VaVoom on your web<br>site shortly their after.<br><br>Thanks a million!<br><br>
Tue, 06 Aug 2002 16:30:22

JinnaiGuy

Oop, I should note one thing; the "ResumeMP3" function only works half-heartedly; it starts the MP3 playback at the beginning again... I suppose this needs a function to return the point in the stream, and then be able to jump there again later... unless there's actualy Pause/Resume functions in FMOD.<br><br>I only downloaded it a few days ago, so I'm bound to find tons of goodies yet  ;)
Wed, 07 Aug 2002 04:35:58

Janis Legzdinsh

Thanks! It seams that adding MP3 won't be too hard. That is in Windows version. For DOS/Linux there's another MP3 library specially for Allegro. So possibly next version will have MP3 support.
Tue, 13 Aug 2002 11:43:55

SlayeR

How about modules support while your at it???  8) ;D
Tue, 13 Aug 2002 20:51:31

RambOrc

Another thing about MP3, doesn't it use a lot of CPU power? Also, how many hardware audio channels does it need?
Tue, 13 Aug 2002 21:02:30

moose

I'm seeing OGG lots now that I look for it I have over 100 .ogg on my PC and didn't even know it.<br><br>If you still want mp3s playing while you kill just copie them onto CD and use that instead, lots easyer for janis and if you use a CD player (not your CD rom) no extra CPU power taken.
Wed, 14 Aug 2002 03:03:56

Janis Legzdinsh

How about modules support while your at it???  8) ;D
<br>If you mean .dll files, I don't like it for 2 reasons: portability and security.<br>
Wed, 14 Aug 2002 03:07:35

Janis Legzdinsh

Another thing about MP3, doesn't it use a lot of CPU power?
<br>Of course decoding takes some CPU power, so decoder needs to be fast. <br><br>
Also, how many hardware audio channels does it need?
<br>Basicly it's a compressed wav file and is decompressed into wave data, so only one channel is needed.
Thu, 15 Aug 2002 21:21:45

SlayeR

[quote author=Janis Legzdinsh link=board=suggestion;num=1028264514;start=0#12 date=08/13/02 at 20:03:56]<br>If you mean .dll files, I don't like it for 2 reasons: portability and security.<br><br><br>No, I mean tracked modules (music), or mods for short.<br>[url:2pno8qa5]http://www.modplug.com<br><br>ZDoom and Jdoom support mods, and I make them too <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) -->
Fri, 16 Aug 2002 01:39:58

moose

Janis mods are a good idea then I can use SlayeR's heavy doom mods in vavoom <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Fri, 16 Aug 2002 02:44:26

Janis Legzdinsh

OK, I see. I know some libs that I can use. But it might turn out that they take more CPU resources than MP3/Vorbis pdecoding. Anyways first I'll implement Vorbis, then, maybe, MP3.
Fri, 16 Aug 2002 17:32:39

SlayeR

Heh, good to see people like my heavy doom remixes <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --><br><br>All my other non-doom mods are available at my homepage too:<br><br>http://slayer226.wronger.com
Fri, 16 Aug 2002 18:29:17

moose

Yer I like your mods, I was listening to the most of yesterday afternoon.<br><br>Need more doom ones ;D
Fri, 16 Aug 2002 22:54:04

SlayeR

Hmmm, a good idea. I think I'll do a MAP01 remix...
Sat, 17 Aug 2002 06:25:45

RambOrc

Just downloaded the remixes, currently listening to them...<br><br>E1M1: sounds cool, especially the dual guitars in the base riff. The high-pitched solo sounds more like a bad synthesizer though, it isn't even remotely like a real lead guitar. Dunno what technology you used, soundfonts or something similar, at any rate only the rhythm guitar part of it seems to be OK.<br><br>E1M2: wow, I'd have never thought of making it into heavy metal... the idea is real cool, I'd make the guitar play the rhythm instead of the long strokes. A hand-muted play style with heavy bass resonance would be best, I think (I guess this one has a name as well but most styles I only know how to play, not how to call <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> ).<br><br>E1M4: I never liked this song, IMO you can do anything you want with it it'll remain crap (not your fault of cause).<br><br>BTW wouldn't you want to try your hands on Heretic's E2M3? Unless you have an AWE32 it's rather difficult to hear out the lead guitar sequences, but they're in and pretty good. I've been planning for years to record it with the original MIDI drum and synth sequences plus a real guitar track, but I might not get around actually doing it in the next couple of years neither (though I wrote a real brutal thrash-riff to replace the original meager guitar sound ;D ).
Sat, 17 Aug 2002 17:03:29

SlayeR

Yeah, the E1M1 mix at my site is not as good as the new one I've done for my Doom Redemption project.<br><br>E1M2 was the first one I did, and yeah, the actual MIDI doesn't have any guitars whatsoever, so that was a kinda 'different' remix I guess.<br><br>I like E1M4 only because it's basically the same as 'Rise' by Pantera, which is a cool song.<br><br>Mods don't use soundfonts or anything, they use wave samples that are played at different pitch, and effects can be put on them, etc.<br><br>Since my last post I've done 3 doom remixes <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --><br><br>Map01:<br>[url:baq56d9n]http://slayer226.web1000.com/files/map01mix.zip<br><br>Map07:<br>[url:baq56d9n]http://slayer226.web1000.com/files/map07mix.zip<br><br>Map10:<br>[url:baq56d9n]http://slayer226.web1000.com/files/map10mix.zip<br><br>And I'll see what I can do with Heretic E2M3 sometime ;D
Sat, 17 Aug 2002 20:32:11

RambOrc

Wow, now that you say I got out my "Vulgar display of power" CD and you're right, it's really similar. Given the release date, I'd say Rob Prince just stole it... there's another DOOM song that sounds like a Pantera clone, it's E3M1 and the Pantera song is on the same album, couldn't yet locate it but I'm sure it's there.<br><br>[quote author=SlayeR link=board=suggestion;num=1028264514;start=15#21 date=08/17/02 at 10:03:29]Mods don't use soundfonts or anything, they use wave samples that are played at different pitch, and effects can be put on them, etc.<br>LOL, Creative's soundfonts are exactly that, wave samples played at different tones. <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> AFAIK the first PC sound card to use this technology was the SoundBlaster AWE 32 (AWE = Advanced Wave Effects Synthesis).
Sat, 17 Aug 2002 20:43:02

RambOrc

In the 1st and 10th maps of DOOM2 you use exactly that play style I meant for E1M2 of DOOM.<br><br>Say, wouldn't you want to try your hand on some of Hexen's music? There are some tracks with lead guitar but with a weak one, you could make it a lot better-sounding. <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
Mon, 19 Aug 2002 20:47:37

SlayeR

Hmmm, well most of the Heretic/Hexen songs would be kinda hard to do 'heavy' versions of, but I may have a go sometime...
Tue, 20 Aug 2002 04:31:08

RambOrc

I meant those few that already have the guitar in (like the music for Caves of Circe and The Dungeons in Hexen, for example), you could make it sound more like a heavy metal lead guitar. <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) --> In Heretic, there are a couple of songs with guitar as well (e.g. E1M1, E1M5, E1M9).
Sat, 24 Aug 2002 00:01:03

RambOrc

BTW DOOM and heavy metal, in late '97 I was playing in a thrash metal band and we had a song about DOOM, check it out at [url:36xy31lh]http://badlands.orcishweb.com/badlands_songs.html#shoresofhell. Don't be too shocked, it's pretty amateur and my English was even worse back then than it is now. <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
Thu, 10 Jan 2008 16:21:48

Janis Legzdinsh

Implemented long time ago.

Back to the Vavoom Forum Archives