ZDoom with OpenAL
Moderator: GZDoom Developers
- Chris
- Posts: 2983
- Joined: Thu Jul 17, 2003 12:07 am
- Graphics Processor: ATI/AMD with Vulkan/Metal Support
Re: ZDoom with OpenAL
I once had an idea to make a Metroid Prime-ish TC for ZDoom.. would've been interesting to have the Super Metroid SPCs for music. Never got farther than a bare starting room, though.
- Cutmanmike
- Posts: 11354
- Joined: Mon Oct 06, 2003 3:41 pm
- Operating System Version (Optional): Windows 10
- Location: United Kingdom
- Contact:
Re: ZDoom with OpenAL
Honestly, I think everyone hasChris wrote:I once had an idea to make a Metroid Prime-ish TC for ZDoom.. would've been interesting to have the Super Metroid SPCs for music. Never got farther than a bare starting room, though.
-
sniperchance
- Posts: 68
- Joined: Sun Apr 06, 2008 9:55 pm
Re: ZDoom with OpenAL
Except I wanted to make one for Half-Life 1.
- Chris
- Posts: 2983
- Joined: Thu Jul 17, 2003 12:07 am
- Graphics Processor: ATI/AMD with Vulkan/Metal Support
Re: ZDoom with OpenAL
Back on topic, here's a small update. This mainly just fixes up the sound option menus so that FMOD-related options and OpenAL-related options are kept seperate, and adds a snd_backend cvar to be able to select OpenAL with. Haven't been able to test against r1257 (due to this bug), but it worked fine in r1256.
Re: ZDoom with OpenAL
Will ADLIB music files still play with this modification?
- Graf Zahl
- Lead GZDoom+Raze Developer

- Posts: 49252
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: ZDoom with OpenAL
That depends. The OPL player does work with this but if OpenAL is used to move to GPL that piece of code has to go because it comes with a (GPL incompatible) no profit clause.
Re: ZDoom with OpenAL
That's what I thought... Thanks...Graf Zahl wrote:That depends. The OPL player does work with this but if OpenAL is used to move to GPL that piece of code has to go because it comes with a (GPL incompatible) no profit clause.
- DoomRater
- Posts: 8270
- Joined: Wed Jul 28, 2004 8:21 am
- Preferred Pronouns: He/Him
- Location: WATR HQ
- Contact:
Re: ZDoom with OpenAL
I will make much greater use of SPCs in the future. I already had one mod where I used a Final Fight one (and a later version using a Dragon the Bruce Lee Story SPC)
-
sniperchance
- Posts: 68
- Joined: Sun Apr 06, 2008 9:55 pm
Re: ZDoom with OpenAL
I just remembered that Mac OS X comes with OpenAL. I may just test this out with the ZDoom OS X builds that I've been working on, if I have the time.
- hnsolo77
- Posts: 1446
- Joined: Sat Sep 16, 2006 8:06 pm
- Location: the mythical land of Toronto Canada. (not really)
Re: ZDoom with OpenAL
guilty as charged, and i still have not given up, currently trying to make missile and super missile expansions that work, energy tanks are working properly after blundering around with my ineptitude with ACSCutmanmike wrote:Honestly, I think everyone hasChris wrote:I once had an idea to make a Metroid Prime-ish TC for ZDoom.. would've been interesting to have the Super Metroid SPCs for music. Never got farther than a bare starting room, though.
- Chris
- Posts: 2983
- Joined: Thu Jul 17, 2003 12:07 am
- Graphics Processor: ATI/AMD with Vulkan/Metal Support
Re: ZDoom with OpenAL
Here's an update to oalsound.cpp. This makes audio streams take from the pool of sources in the renderer instead of allocating their own (helpful in case snd_channels preallocates all available sources). Also fixes StartSound[3D] to be more resistant to problems when attempting to "steal" sources. Just replace the oalsound.cpp from the previous patch with this one.
About MP3 playback, I found this lib: MAD. It says it's GPL, even though its used by LGPL libs/apps (eg. gstreamer). I also don't know what the situation would be if it's used to help make (G)ZDoom become GPL, even if it's not yet (how's that for irony; a lib being GPL preventing an app from becoming GPL
), or if it's not a required dependancy.. ie. ZDoom would still run fine without the lib; just without MP3 support.
Assuming that's not a feasible option, what other cross-platform external mpeg audio decoder libs are there?
About MP3 playback, I found this lib: MAD. It says it's GPL, even though its used by LGPL libs/apps (eg. gstreamer). I also don't know what the situation would be if it's used to help make (G)ZDoom become GPL, even if it's not yet (how's that for irony; a lib being GPL preventing an app from becoming GPL
Assuming that's not a feasible option, what other cross-platform external mpeg audio decoder libs are there?
- bagheadspidey
- Posts: 1490
- Joined: Sat Oct 20, 2007 10:31 pm
- Contact:
Re: ZDoom with OpenAL
ffmpeg (aka libavcodec) uses lame... is lgpl stuff out of the question?
- Chris
- Posts: 2983
- Joined: Thu Jul 17, 2003 12:07 am
- Graphics Processor: ATI/AMD with Vulkan/Metal Support
Re: ZDoom with OpenAL
FFmpeg is unfortunately out of the question (it's too much of a pain for Windows, apparently). LGPL stuff in general is fine though, as long as it dynamicly links and it doesn't have to be modified.bagheadspidey wrote:ffmpeg (aka libavcodec) uses lame... is lgpl stuff out of the question?
- bagheadspidey
- Posts: 1490
- Joined: Sat Oct 20, 2007 10:31 pm
- Contact:
Re: ZDoom with OpenAL
I meant to suggest lame, not ffmpeg (it seems like you've got the rest of the stuff ffmpeg would handle covered).
- Chris
- Posts: 2983
- Joined: Thu Jul 17, 2003 12:07 am
- Graphics Processor: ATI/AMD with Vulkan/Metal Support
Re: ZDoom with OpenAL
Actually, no. FFmpeg could handle quite a few formats (including AC3/AAC, speex, and several more; not to mention it could use DShow on Windows, IIRC). Though I'd like to think I've covered the majority of what ZDoom wads would use (sans MP3).bagheadspidey wrote:I meant to suggest lame, not ffmpeg (it seems like you've got the rest of the stuff ffmpeg would handle covered).
As for LAME, it seems to only be an encoder.. not sure how that would help here. According to MAD's page, MPlayer (which is where FFmpeg comes from) uses libMAD.