Forums

Sega Master System / Mark III / Game Gear
SG-1000 / SC-3000 / SF-7000 / OMV
Home - Forums - Games - Scans - Maps - Cheats - Credits
Music - Videos - Development - Hacks - Translations - Homebrew

View topic - PSG and more than one sfx

Reply to topic
Author Message
  • Joined: 06 Sep 2015
  • Posts: 263
  • Location: United States
Reply with quote
PSG and more than one sfx
Post 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.
  View user's profile Send private message Visit poster's website
  • Joined: 01 Feb 2014
  • Posts: 851
Reply with quote
Post 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.
  View user's profile Send private message
  • Joined: 06 Sep 2015
  • Posts: 263
  • Location: United States
Reply with quote
Post Posted: Mon May 23, 2022 8:27 pm
OK, thanks for the answer. That's what I was afraid of.
  View user's profile Send private message Visit poster's website
  • Joined: 06 Sep 2015
  • Posts: 263
  • Location: United States
Reply with quote
Post 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.
  View user's profile Send private message Visit poster's website
Reply to topic



Back to the top of this page

Back to SMS Power!