ZDoom with OpenAL

Moderator: GZDoom Developers

Post Reply
User avatar
Chris
Posts: 2983
Joined: Thu Jul 17, 2003 12:07 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Re: ZDoom with OpenAL

Post by Chris »

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.
User avatar
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

Post by Cutmanmike »

Chris 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.
Honestly, I think everyone has ;)
sniperchance
Posts: 68
Joined: Sun Apr 06, 2008 9:55 pm

Re: ZDoom with OpenAL

Post by sniperchance »

Except I wanted to make one for Half-Life 1.
User avatar
Chris
Posts: 2983
Joined: Thu Jul 17, 2003 12:07 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Re: ZDoom with OpenAL

Post by Chris »

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.
User avatar
AFADoomer
Posts: 1345
Joined: Tue Jul 15, 2003 4:18 pm
Contact:

Re: ZDoom with OpenAL

Post by AFADoomer »

Will ADLIB music files still play with this modification?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: ZDoom with OpenAL

Post by Graf Zahl »

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.
User avatar
AFADoomer
Posts: 1345
Joined: Tue Jul 15, 2003 4:18 pm
Contact:

Re: ZDoom with OpenAL

Post by AFADoomer »

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.
That's what I thought... Thanks...
User avatar
DoomRater
Posts: 8270
Joined: Wed Jul 28, 2004 8:21 am
Preferred Pronouns: He/Him
Location: WATR HQ
Contact:

Re: ZDoom with OpenAL

Post by DoomRater »

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

Post by sniperchance »

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.
User avatar
hnsolo77
Posts: 1446
Joined: Sat Sep 16, 2006 8:06 pm
Location: the mythical land of Toronto Canada. (not really)

Re: ZDoom with OpenAL

Post by hnsolo77 »

Cutmanmike wrote:
Chris 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.
Honestly, I think everyone has ;)
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 ACS
User avatar
Chris
Posts: 2983
Joined: Thu Jul 17, 2003 12:07 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Re: ZDoom with OpenAL

Post by Chris »

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 :P), 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?
User avatar
bagheadspidey
Posts: 1490
Joined: Sat Oct 20, 2007 10:31 pm
Contact:

Re: ZDoom with OpenAL

Post by bagheadspidey »

ffmpeg (aka libavcodec) uses lame... is lgpl stuff out of the question?
User avatar
Chris
Posts: 2983
Joined: Thu Jul 17, 2003 12:07 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Re: ZDoom with OpenAL

Post by Chris »

bagheadspidey wrote:ffmpeg (aka libavcodec) uses lame... is lgpl stuff out of the question?
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.
User avatar
bagheadspidey
Posts: 1490
Joined: Sat Oct 20, 2007 10:31 pm
Contact:

Re: ZDoom with OpenAL

Post by bagheadspidey »

I meant to suggest lame, not ffmpeg (it seems like you've got the rest of the stuff ffmpeg would handle covered).
User avatar
Chris
Posts: 2983
Joined: Thu Jul 17, 2003 12:07 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Re: ZDoom with OpenAL

Post by Chris »

bagheadspidey wrote:I meant to suggest lame, not ffmpeg (it seems like you've got the rest of the stuff ffmpeg would handle covered).
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).

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.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”