+hloberg Posted November 30, 2016 Share Posted November 30, 2016 I'm using DLC+ I have this little routine below that makes a explosion sound when a ship is hit. I have seen people use DRAWSCREEN as a delay otherwise the sound effect is so fast it can barely be heard. Problem is that the playfield jumps up ad down while the sound effect is going on. this seems to only happen in DLC. use multikernal and the effect does not happen. question is there a more elegant delay i can use for the sound effect so that I won't have to use the bouncing playfield delay? AUDV0 = 8 AUDC0 = 8 AUDF0 = 8 drawscreen t1=0_sndcnt1 drawscreen: rem this causes the playfield to jump up and down in DLC+ t1=t1+1:if t1< 25 then goto _sndcnt1 t1=0 AUDV0 = 0 Quote Link to comment Share on other sites More sharing options...
+Gemintronic Posted November 30, 2016 Share Posted November 30, 2016 Not a direct answer to your question. Using drawscreen to delay a sound sounds like overkill and it looks like it's problematic. You could use a counter variable instead and activate the sound as needed. main counter = counter + 1 if counter > 240 then AUDC1 = 2 : AUDV1 = 4 : AUDF1 = 3 Quote Link to comment Share on other sites More sharing options...
+SpiceWare Posted November 30, 2016 Share Posted November 30, 2016 I presume you mean DPC+. Sounds like you're encountering an issue asked about in this topic, to which the answer is: Are you setting the DFxFRACINC registers in the main loop, right before the drawscreen command? Drawscreen messes up the values, so you need to set them each frame. Otherwise the game can jitter with certain values, IIRC. Have you seen my Sound Effect driver for bB? Quote Link to comment Share on other sites More sharing options...
+hloberg Posted December 1, 2016 Author Share Posted December 1, 2016 I presume you mean DPC+. Sounds like you're encountering an issue asked about in this topic, to which the answer is: Have you seen my Sound Effect driver for bB? thanks, DFxFRACINC fixed the jitters. I also try out your sfx package. 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.