It is currently Thu Oct 19, 2017 1:13 pm

All times are UTC - 7 hours





Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Stereo Famicom Register
PostPosted: Fri Jan 25, 2013 2:47 am 
Offline
User avatar

Joined: Mon Feb 07, 2011 12:46 pm
Posts: 919
This might be the way to support game with stereo sounds, even though most games will use mono, and is probably possible to implement in hardware, works with cartridges which include their own audio, doesn't cause problems on mono systems, etc

Make the unused $4009 register to control stereo:
  • bit7 = output internal square waves to left channel.
  • bit6 = output internal triangle/noise/DPCM to left channel.
  • bit5 = output internal square waves to right channel.
  • bit4 = output internal triangle/noise/DPCM to right channel.
  • bit3 = output internal square waves to cartridge.
  • bit2 = output internal triangle/noise/DPCM to cartridge.
  • bit1 = output cartridge audio to left channel.
  • bit0 = output cartridge audio to right channel.

Therefore, the default can be $0F. (Even if the cartridge has no pins for the audio, it can be treated as a direct connection instead.)

_________________
.


Top
 Profile  
 
PostPosted: Fri Jan 25, 2013 4:21 am 
Offline
User avatar

Joined: Fri Nov 19, 2004 7:35 pm
Posts: 3943
Then Ironsword is going to mute all sound. Just because the register is unused doesn't mean that games won't try to write 00's there. That game writes zeros to the entire APU registers area to try to reset the sound channels, then relies on the dummy reads that happen to prevent frame IRQs from happening.

_________________
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!


Top
 Profile  
 
PostPosted: Fri Jan 25, 2013 4:39 am 
Offline
User avatar

Joined: Sat Feb 12, 2005 9:43 pm
Posts: 10059
Location: Rio de Janeiro - Brazil
I don't really see the point of mods that can't be done in hardware, specially if they break existing software.


Top
 Profile  
 
PostPosted: Fri Jan 25, 2013 5:24 am 
Offline
User avatar

Joined: Wed Feb 13, 2008 9:10 am
Posts: 575
Location: Estonia, Rapla city (50 and 60Hz compatible :P)
You can easily add such a register though :

0 - APU1 R
1 - APU2 R
2 - APU1 L
3 - APU2 L
and extra :
4...7 - attenuation for each of the above bits

Each bit would control a gate that will switch that channel and the extra bits control gain of the opamps or such before mixing. Perfectly doable on real hardware, if not a bit complex... For problem games one can add an override jumper (which is what I do on my MD mods, there's always a fallback).

_________________
http://www.tmeeco.eu


Top
 Profile  
 
PostPosted: Fri Jan 25, 2013 6:33 am 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19103
Location: NE Indiana, USA (NTSC)
What writes to $401C-$401F?


Top
 Profile  
 
PostPosted: Fri Jan 25, 2013 8:37 pm 
Offline
User avatar

Joined: Mon Feb 07, 2011 12:46 pm
Posts: 919
Dwedit wrote:
Then Ironsword is going to mute all sound. Just because the register is unused doesn't mean that games won't try to write 00's there. That game writes zeros to the entire APU registers area to try to reset the sound channels, then relies on the dummy reads that happen to prevent frame IRQs from happening.
There are solutions to this too, such as inverting some of the bits or adding an override switch.

TmEE wrote:
You can easily add such a register though :

0 - APU1 R
1 - APU2 R
2 - APU1 L
3 - APU2 L
and extra :
4...7 - attenuation for each of the above bits

Each bit would control a gate that will switch that channel and the extra bits control gain of the opamps or such before mixing. Perfectly doable on real hardware, if not a bit complex... For problem games one can add an override jumper (which is what I do on my MD mods, there's always a fallback).
That isn't working with cartridge audio

tokumaru wrote:
I don't really see the point of mods that can't be done in hardware, specially if they break existing software.
I thought it can be done in hardware?

_________________
.


Top
 Profile  
 
PostPosted: Fri Jan 25, 2013 10:34 pm 
Offline
User avatar

Joined: Mon Apr 04, 2011 11:49 am
Posts: 1905
Location: WhereverIparkIt, USA
Do people really claim to hear the difference between stereo/mono on speakers that are only as far apart as the tv screen when you're sitting several feet away? Or do people wear headphones or have large surround sound rigs setup with their old CRT tvs?

_________________
If you're gonna play the Game Boy, you gotta learn to play it right. -Kenny Rogers


Top
 Profile  
 
PostPosted: Fri Jan 25, 2013 11:48 pm 
Online

Joined: Sun Apr 13, 2008 11:12 am
Posts: 6281
Location: Seattle
Depends on the size of TV, no?

Have you seen the demonstration of people accurately pointing at sounds when blindfolded? Accurate to within 10° or so, so as long as you're not further away than ≈6× the speaker spacing, I bet you'd be able to hear it.


Top
 Profile  
 
PostPosted: Sat Jan 26, 2013 1:30 am 
Offline
User avatar

Joined: Sun Jan 22, 2012 12:03 pm
Posts: 5718
Location: Canada
infiniteneslives wrote:
Do people really claim to hear the difference between stereo/mono on speakers that are only as far apart as the tv screen when you're sitting several feet away? Or do people wear headphones or have large surround sound rigs setup with their old CRT tvs?


Yes, I do, and I think most humans are capable of this. The difference between stereo and mono can probably be detected with very few degrees of separation relative to the listener's ears. I don't know how far the TV would need to be away to make the difference undetectable, but 5 feet away for even a smallish TV is still a difference I can notice for sure.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: Yahoo [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group