Quantcast
Channel: stardot.org.uk
Viewing all articles
Browse latest Browse all 3333

programming • Re: Sound problem

$
0
0
You may have noticed that you can actually tie the noise channel's frequence to one of the tone channels although you would generally set the volume to 0 for that channel - may be one for another day :)
If you mean setting the pitch on channel 1 and then executing the sound on channel 0 then yes, that's in fact what I'm doing to get the alternating sound frequencies for the alien movement. Although the User Guide says you can only use channel 1 for that so that's what I used.

I've really had a lot of problems with the sound, and that's apart from the fact that the sounds aren't arcade accurate. I tried to get the player shot sound working on channel 1 as I thought I could maybe get away with it as I was only using channel 1 intermittently to set the pitch for the alien movement, but it would never play the shot sound and for some reason I couldn't work out when I get down to the last alien and tried to fire a shot, the game crashes. Really bizarre. Only happens on the last alien. Everything freezes except the last alien which endlessly just goes between the left and right sides of the screen but never lands. Stop playing the shot sound on channel 1 and everything is back to normal. So I tried switching it to channel 2, which I was also using for the bomb drop sound as again I thought maybe I could get away with it as the sounds are quite short, but if I set the sounds up to play normally (i.e. without flushing the sound buffer) either one sound plays or the other, which I don't get at all as the sounds should just queue. In the end I put the shot sound on channel 3, same as the flying saucer, and that worked, but you can only hear it if the saucer isn't running of course. But I can live with that. I also changed the saucer explosion to the more siren type sound as you said, so that's ok as I can also play it on channel 3.

The only other sound was an individual alien blowing up which I had to do on channel zero, but I managed that by not allowing the movement sound during the explosion phase, and it seems to work ok.

So I've got the sounds working. They're not arcade accurate but at least I have some sound. Weird behaviour on some of the channels though. Maybe over time I will discover why.

Statistics: Posted by emiliom — Thu Mar 07, 2024 10:53 am



Viewing all articles
Browse latest Browse all 3333

Trending Articles