S-DSP sample rate (where does this go?)

Strictly for discussing ZSNES development and for submitting code. You can also join us on IRC at irc.libera.chat in #zsnes.
Please, no requests here.

Moderator: ZSNES Mods

Post Reply
85cocoa
Hazed
Posts: 55
Joined: Sat Jul 22, 2006 8:43 pm
Location: USA

S-DSP sample rate (where does this go?)

Post by 85cocoa »

In the bsnes WIP News, byuu wrote:Lastly, some fixes to the S-SMP opcode core. Added support for reads that occur during most of the mov instructions, and corrected cmpw to take four cycles instead of five like addw and subw. I also adjusted the S-DSP to run at 32040hz, and moved PAL S-CPU's speed back to 21281370hz, which is more in line of what has been observed in the past. NTSC S-CPU remains unchanged at 21477272hz. Earthworm Jim 2 sound effects still work in all regions.
So does that mean that 32040 Hz is the real "SNES sound sample rate"?

(Oops, this is probably a stupid question... The question is merely about my understanding of the text.)
[url=http://en.wikipedia.org/wiki/Pocky]Pocky[/url] & [url=http://en.wikipedia.org/wiki/Rocky]Rocky[/url]? [url=http://en.wikipedia.org/wiki/Pocky_%26_Rocky]Pocky & Rocky[/url]? [url=http://en.wikipedia.org/wiki/Sonic_the_Hedgehog_%28series%29#Animals.2FMobians]Pocky & Rocky[/url]?
byuu

Post by byuu »

According to the oscilloscope on this page:
http://alpha-ii.com/Info/snes-spdif.html

... yes. In reality, it probably varies, but is usually observed as being faster than 32khz. I still play back audio at 32khz (because not much supports 32040hz in hardware), so in a sense, emulation is infinitesimally slower than real hardware.

And the development forum is where this goes.
85cocoa
Hazed
Posts: 55
Joined: Sat Jul 22, 2006 8:43 pm
Location: USA

Post by 85cocoa »

byuu wrote:According to the oscilloscope on this page:
http://alpha-ii.com/Info/snes-spdif.html

... yes. In reality, it probably varies, but is usually observed as being faster than 32khz. I still play back audio at 32khz (because not much supports 32040hz in hardware), so in a sense, emulation is infinitesimally slower than real hardware.
That explains why this wasn't seriously acted upon before...
byuu wrote:And the development forum is where this goes.
Sorry about that - I won't be doing any emulator development for any system in quite a while, which is why I put this in the "wrong" forum.

Mods, feel free to lock this thread.
[url=http://en.wikipedia.org/wiki/Pocky]Pocky[/url] & [url=http://en.wikipedia.org/wiki/Rocky]Rocky[/url]? [url=http://en.wikipedia.org/wiki/Pocky_%26_Rocky]Pocky & Rocky[/url]? [url=http://en.wikipedia.org/wiki/Sonic_the_Hedgehog_%28series%29#Animals.2FMobians]Pocky & Rocky[/url]?
adventure_of_link
Locksmith of Hyrule
Posts: 3634
Joined: Sun Aug 08, 2004 7:49 am
Location: 255.255.255.255
Contact:

Post by adventure_of_link »

Request granted.
<Nach> so why don't the two of you get your own room and leave us alone with this stupidity of yours?
NSRT here.
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

adventure_of_link wrote:Request granted.
For no important reason.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
Post Reply