- Joined: 06 Sep 2015
- Posts: 268
- Location: United States
|
PSG and more than one sfx
Posted: Mon May 23, 2022 5:11 pm
|
Here's a question for all you code gurus out there.
It seems as though PSG can only support 1 sound effect playing, right? I ask because sometimes I want to play 2 sound effects at once, one uses channel 2 and the other uses channel 3. The one using channel 2 gets cut off midplaying if the sfx that uses channel 3 starts up (the channel 2 sfx doesn't complete all the way to the end.) I was just wondering if there was a way that I could play 2 sound effects at once with both of them completing to their ends.
EDIT: I'm using Game Gear.
|
- Joined: 01 Feb 2014
- Posts: 888
|
Posted: Mon May 23, 2022 8:07 pm
|
The four channels of the PSG are independent of each other, so in theory you could play four sound effects at the same time if you don't mind sacrificing parts of the music.
I guess your question is not about the technical capabilities of the hardware, though. You probably want to know if it’s possible to play two sound effects at the same time when using PSGlib. In that case the answer is no, you can’t do that.
|
- Joined: 06 Sep 2015
- Posts: 268
- Location: United States
|
Posted: Mon May 23, 2022 8:27 pm
|
OK, thanks for the answer. That's what I was afraid of.
|
- Joined: 06 Sep 2015
- Posts: 268
- Location: United States
|
Posted: Wed May 25, 2022 12:09 am
|
I was able to get around this by directly writing to channel 3 (instead of using PSGLib), and when it's done (so says a timer I added reaching a certain value), shutting channel 3 off.
|