Dwedit's Board

Enjoy the board

You are not logged in.

Announcement

Welcome, fellow visitors from other websites!
Whenever you download a file, I'd appreciate it if you posted a nice "Thank You" message, then tell me which site you came from. Thanks.
- Dwedit

#1 2020-11-21 3:32:11 pm

biolizardshadow
Guest

How does pocketnes handle sound?

Is sound output through directsound A or B or is it some clever way of utilizing the GB sound channels. I am asking this because the noise channel sounds like a broken version of the GB noise channel.

#2 2020-11-22 5:23:42 pm

Dwedit
Administrator
From: Chicago
Registered: 2004-12-12
Posts: 1,017
Website

Re: How does pocketnes handle sound?

PocketNES does sound through the PSG channels.  Square waves, triangle waves, and noise are handled through the GB-like sound channels.

Square wave channel uses a neat trick to get around a GB hardware restriction.  On the game boy/gba, you can't change the volume of the square wave channel, unless you also reset the wave.  So PocketNES also runs timers at the exact same frequency as the square channel, so it can time the channel reset to become inaudible.

Indeed, noise isn't very good.  I wonder if that would need to be software synthesized instead of using GB noise.


"We are merely sprites that dance at the beck and call of our button pressing overlord."

Offline

Registered users online in this topic: 0, guests: 1
[Bot] claudebot

Board footer

Powered by FluxBB
Modified by Visman