DEATH Posted January 20, 2019 Share Posted January 20, 2019 Found this on Atari Jaguar Fans, Facebook "Some of you might find this interesting. I figured out how to mix music and sound in Jaguar Doom, the results however are quite terrible. The music sounds quite scratchy and choppy but everything else runs fine. Here is a better example, apologies for the poor camera work. I was trying to film and play at the same time. It really seems like the id Software team almost had it but ran out of time, IMO." 7 Quote Link to comment Share on other sites More sharing options...
BeefMan Posted January 23, 2019 Share Posted January 23, 2019 Hey thanks for sharing! This was me just messing around with the source. I'll record a better video soon so you can hear the music a bit better. Anyone care to speculate as to what is happening to the music to make it sound the way it does? It's interesting that it works at all! 1 Quote Link to comment Share on other sites More sharing options...
neo_rg Posted January 23, 2019 Share Posted January 23, 2019 All samples, both music and effects are played directly from cart. Probably killing the bus accessing it all. 3 Quote Link to comment Share on other sites More sharing options...
Sporadic Posted January 23, 2019 Share Posted January 23, 2019 All samples, both music and effects are played directly from cart. Probably killing the bus accessing it all. Any mileage in reducing the sample rate to reduce the load? 1 Quote Link to comment Share on other sites More sharing options...
BeefMan Posted January 23, 2019 Share Posted January 23, 2019 You think a bus saturation issue would also affect the sound fx which seem to playback fine. Maybe sound is prioritized over Music? -Chad Quote Link to comment Share on other sites More sharing options...
BeefMan Posted January 23, 2019 Share Posted January 23, 2019 Any mileage in reducing the sample rate to reduce the load? I was wondering the same thing. I've tried changing a couple references I found for sample rate but couldn't hear any appreciable difference but I'll keep digging. -Chad 1 Quote Link to comment Share on other sites More sharing options...
Sporadic Posted January 23, 2019 Share Posted January 23, 2019 I was wondering the same thing. I've tried changing a couple references I found for sample rate but couldn't hear any appreciable difference but I'll keep digging. -Chad Have you tried disabling the sound FX to see if that helps the music? Just as a test Quote Link to comment Share on other sites More sharing options...
BeefMan Posted January 23, 2019 Share Posted January 23, 2019 I have and the music plays perfect with sound FX disabled. -Chad Quote Link to comment Share on other sites More sharing options...
+CyranoJ Posted January 23, 2019 Share Posted January 23, 2019 I have and the music plays perfect with sound FX disabled. -Chad Wouldn't mind taking a look at this, any chance of posting a buildable source? 2 Quote Link to comment Share on other sites More sharing options...
BeefMan Posted January 23, 2019 Share Posted January 23, 2019 Certainly, which build you looking for? The one with music during gameplay or what I currently have with the mixing or both? -Chad Quote Link to comment Share on other sites More sharing options...
+CyranoJ Posted January 23, 2019 Share Posted January 23, 2019 The one with mixing enabled please 3 Quote Link to comment Share on other sites More sharing options...
BeefMan Posted January 23, 2019 Share Posted January 23, 2019 The one with mixing enabled please Okay, give me just a few and I'll zip up everything I got. 2 Quote Link to comment Share on other sites More sharing options...
BeefMan Posted January 23, 2019 Share Posted January 23, 2019 Here you go! https://drive.google.com/file/d/1frvZZWOzosGtsqNyU6tHwOzfKEKWxaUY/view?usp=sharing I've packaged it up where you can mount this folder as the c: drive in Dosbox. I threw all the source code under Jaguar\bin. You can run make to build a new doom.abs but I've left mine in there for now. Now for the fun part, you want to navigate to the 2nd level and press the number 3 on the controller to fire up music and sound. You can actually hear the mixing in the intro and menus though. I will stay up all night if needed to provide whatever support you need! 1 Quote Link to comment Share on other sites More sharing options...
+CyranoJ Posted January 23, 2019 Share Posted January 23, 2019 Thanks, but - Go to bed, its 10am here and I'm at work Will look when I get home! 4 Quote Link to comment Share on other sites More sharing options...
BeefMan Posted January 23, 2019 Share Posted January 23, 2019 (edited) Some additional notes: The main change I made was in "s_sound.c" where it literally has a section commented for /* run the mixing in parallel on the dsp */ . Just compare the original to mine, not a big change really. I setup the number 3 to run "S_StartSong(mus_e1m2, 1);" in "p_user.c" If you try pressing 3 on the first level the game will freeze because it's already still playing the intro. But you can reset it by pressing the "* #" combo on the controller. If you happen to be playing with a Pro Controller, use the shoulder buttons to strafe, 10x more fun that way Again you don't even have to start the game to hear the music struggling in the intro. Edited January 24, 2019 by BeefMan 2 Quote Link to comment Share on other sites More sharing options...
BeefMan Posted January 24, 2019 Share Posted January 24, 2019 (edited) Tried recording another video. On my phone it sounds fairly loud so youtube must be lowering the volume. Right about the time I fire the shotgun the song loops back to the beginning where it's fairly quiet. Edited January 24, 2019 by BeefMan 2 Quote Link to comment Share on other sites More sharing options...
+CyranoJ Posted January 24, 2019 Share Posted January 24, 2019 Could be completely wrong here (20 minutes of looking) but, in dspbase.gas: ALT_SAMPLE_P (r21) is used as the sample pointer for the audio to play r21 is set in both music.gas and sfx.gas You'd need to re-code one of them to use another pointer, then modify the replayer in dspbase.gas to read and mix them into the output stream. Code is a bag of snakes having an orgy. Might be easier to rip it all out and replace with u235, hack it into the sample player, and use modules. 7 Quote Link to comment Share on other sites More sharing options...
BeefMan Posted January 24, 2019 Share Posted January 24, 2019 (edited) Could be completely wrong here (20 minutes of looking) but, in dspbase.gas: ALT_SAMPLE_P (r21) is used as the sample pointer for the audio to play r21 is set in both music.gas and sfx.gas You'd need to re-code one of them to use another pointer, then modify the replayer in dspbase.gas to read and mix them into the output stream. Code is a bag of snakes having an orgy. Might be easier to rip it all out and replace with u235, hack it into the sample player, and use modules. Thank you for taking a peak! I’m really lost when it comes to assembly but I’ll start reading up. Do you think the soundFx data is basically corrupting the music data because they are sharing the same pointer? It really seems like it might be possible to make this work, or am I being optimistic? If so maybe we should consider setting up a bounty for someone to claim if they were to get it working. Not that it would be me lol. We need a coding hero! -Chad Edited January 24, 2019 by BeefMan Quote Link to comment Share on other sites More sharing options...
leech Posted January 24, 2019 Share Posted January 24, 2019 This would be cool. As far as Doom on consoles go, the Jaguar one is always rated the best, but always lowered because of the lack of music. 2 Quote Link to comment Share on other sites More sharing options...
philipj Posted January 25, 2019 Share Posted January 25, 2019 Wasn't a custom C compiler used to program Doom for the Jag...? Every one and their mother was looking for the compiler at one time before they gave up. Quote Link to comment Share on other sites More sharing options...
+CyranoJ Posted January 25, 2019 Share Posted January 25, 2019 Wasn't a custom C compiler used to program Doom for the Jag...? Every one and their mother was looking for the compiler at one time before they gave up. No. Quote Link to comment Share on other sites More sharing options...
philipj Posted January 25, 2019 Share Posted January 25, 2019 No. Quote from John Carmack: I actually dug up all my old jaguar development hardware to give to these guys a year or two ago. Unfortunately, it turned out that I had lost the C compiler that I had retargeted to the jaguar RISC engines, so DOOM was no longer buildable. Quote Link to comment Share on other sites More sharing options...
neo_rg Posted January 25, 2019 Share Posted January 25, 2019 (edited) If that's the case then we couldn't build doom from source now... #pennydrop Edited January 25, 2019 by neo_rg 4 Quote Link to comment Share on other sites More sharing options...
+CyranoJ Posted January 25, 2019 Share Posted January 25, 2019 Thanks for stating the blindingly obvious, Neo Answer is still no. Quote Link to comment Share on other sites More sharing options...
JagChris Posted January 25, 2019 Share Posted January 25, 2019 I'm sure he meant that about the initial state the makefile was in when he first dug everything out. Then later tweaked it before releasing so it would build. I'm sure these guys are just kidding with you Phillip. 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.