Basic FMOD Ex support (patch included)

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
User avatar
Nash
 
 
Posts: 17500
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Post by Nash »

I haven't gotten the chance to try this with mod music yet but I redownloaded it after your post yesterday and there's still no stereo field.

How about trying this with headphones? The stereo field is exaggerated with them so you can tell if it's working or not.

MIDI playback is still choppy. It would stutter for a bit then speed up. It sounds funny because the music is trying to catchup where it left off when it was paused so I get brief bursts where the music will slow down and speed up. It's funny. :P
User avatar
k0da
Posts: 54
Joined: Thu Jan 25, 2007 8:39 pm

Post by k0da »

Try these new binaries http://www.sturmspace.com/files/zdoom_f ... may_07.zip

The pan was being set incorrectly. Now the buffer size for streams is quadrupled, so see if it stutters still Nash. I have also fixed the snd_reset bug so there should be no more crashes on exit.

I'm getting an error "Sorry, but the maximum filesize for all Attachments is reached. Please contact the Board Administrator if you have questions." so the new patch against the SVN source can be found at http://www.sturmspace.com/files/fmodex_patch.zip
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

One thing: The snd_midivolume doesn't need to be a separate slider anymore. Especially if you only use it in Windows it doesn't make any sense at all.
User avatar
scen
Posts: 17
Joined: Tue Aug 08, 2006 9:42 am
Location: Padova, Italy
Contact:

Re: Basic FMOD Ex support (patch included)

Post by scen »

k0da wrote:I have created an archive containing new FMOD Ex code and also patch against the SVN for changes made to existing files.
VERY cool 8-)
k0da wrote: It's still very much work in progress, but it does work. I would also appreciate feedback from Linux developers if they could test my changes.
Ok, i'll try to give you some feedback ASAP :wink:
Lemonzest
Posts: 327
Joined: Tue Oct 12, 2004 3:19 pm
Location: On your boards, trolling your threads!!!

Post by Lemonzest »

How do i make this use Hardware MIDI? i have a soundblaster Audigy 2 with the 8MB soundfont and MIDI with this build sounds "wrong" to me

Solved reading helps, snd_midiforcefmodex = false
User avatar
Nash
 
 
Posts: 17500
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Post by Nash »

The panning is correct now. Good job. :)

The MIDI playback is still horrible though (yes it's that bad). Had to disable FModEx's MIDI player because it was so annoying.

Why does snd_reset always play the title music? Shouldn't it just restart the current music?

I'll get around to testing tracked music tonight.

EDIT: My specs -

Athlon 64 X2 4200+
1024 MB DDR2-667
Onboard Realtek AC'97 audio

I suspect the crappy onboard sound device could be the cause of all this but I don't have any more space on my motherboard to put a proper soundcard because of my two graphic cards. :(
User avatar
k0da
Posts: 54
Joined: Thu Jan 25, 2007 8:39 pm

Post by k0da »

Graf Zahl wrote:One thing: The snd_midivolume doesn't need to be a separate slider anymore. Especially if you only use it in Windows it doesn't make any sense at all.
Good point. I'll address this.
Lemonzest wrote:How do i make this use Hardware MIDI? i have a soundblaster Audigy 2 with the 8MB soundfont and MIDI with this build sounds "wrong" to me

Solved reading helps, snd_midiforcefmodex = false
I'll get rid of the snd_midiforcefmodex CVAR later and put in as selectable device later. The FMOD Ex MIDI playback uses the crappy gm.dsl sound bank that comes with Windows. Other DSL1 sound banks are loadable, but seem non-existent on the Internet :(.

Nash: I'm glad panning is now working. Thanks for reporting the issue.

My Windows box is only a 1.5 ghz Athlon XP with 512mb DDR-2100 RAM and onboard sound. Your onboard audio wouldn't be at fault since all mixing is currently done by the FMOD Ex internally, before being sent to the sound card. I really don't know what's going on maybe its a bug in FMOD Ex - I doubt the MIDI playback gets much testing since lossy formats such as OGG are much more popular for games these days. I'll try and get around to streaming from memory instead of disk to see if this makes a difference.

In regards to snd_reset, this is normal ZDoom behaviour if you drop into the console from the menu before a game is started. Try snd_reset when a game has started. This bug can be fixed later, as I'd rather work on reverb, 3D sound and fixing any major bugs that crop up. Thanks for reporting anyway. You've been very astute at finding bugs in my code ;).
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

k0da wrote: The FMOD Ex MIDI playback uses the crappy gm.dsl sound bank that comes with Windows. Other DSL1 sound banks are loadable, but seem non-existent on the Internet :(.

Yeah, too bad. All the jerks whine and complain that MIDI on Windows sucks but don't realize that they could offer a better alternative if they wanted. But whining is sooo much easier...
Lemonzest
Posts: 327
Joined: Tue Oct 12, 2004 3:19 pm
Location: On your boards, trolling your threads!!!

Post by Lemonzest »

DirectMusic's Default (GM.DLS) is crappy, and there is none on the web to fix it, because again its another crappy MS standard noone follows, if you want decient MIDI get a SoundBlaster or Timidity++.

k0da, so windows synth will be selectable in the sound device menu? if so thats fine, and thanks.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

Lemonzest wrote:DirectMusic's Default (GM.DLS) is crappy, and there is none on the web to fix it, because again its another crappy MS standard noone follows, if you want decient MIDI get a SoundBlaster or Timidity++.
That's what I mean. You ignore the capabilities due to personal bias. Logically you don't have the right to complain. What's so bad about DLS? At least it's a container format that doesn't require hundreds of separate files and an inane configuration file that just invites making errors. And besides, it's Windows's standard so if you want to do better for Windows you have to bother with it.

And last but not least, I haven't found a single sound font for Timidity that is capable of playing all of the MIDIs I regularly use for Doom without errors - except for the 'crappy' GM.DLS!
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Post by randi »

Lemonzest wrote:its [DLS] another crappy MS standard noone follows
Um, no. DLS is a MIDI standard. SoundFonts are the proprietary standard. You're complaining about Microsoft using a standard supported by the MIDI Manufacturer's Association instead of one controlled by Creative.
dennisj1
Posts: 399
Joined: Sun Jan 11, 2004 1:46 pm
Location: Superior, WI

Post by dennisj1 »

@Randy: then why does no one (other than Microsoft) support it?
User avatar
k0da
Posts: 54
Joined: Thu Jan 25, 2007 8:39 pm

Post by k0da »

dennisj1 wrote:@Randy: then why does no one (other than Microsoft) support it?
http://www.midi.org/about-midi/dls/dlsprods.shtml

There seem to be many more companies supporting DLS than just Microsoft. In terms of operating systems, I know Apple support DLS via CoreMIDI under OS X.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

dennisj1 wrote:@Randy: then why does no one (other than Microsoft) support it?

Maybe because it's not nerd-ish enough? :twisted:
Lemonzest
Posts: 327
Joined: Tue Oct 12, 2004 3:19 pm
Location: On your boards, trolling your threads!!!

Post by Lemonzest »

how do i use this patch? when i use patch -i fmodex.diff i get errors asking "which file to patch" what cmd line should i be using?
Post Reply

Return to “General”