File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ namespace ares::MyVision {
1212
1313 stream = node->append < Node::Audio::Stream > (" PSG" );
1414 stream->setChannels (1 );
15- stream->setFrequency (Constants::Colorburst::NTSC / 16 );
15+ stream->setFrequency (Constants::Colorburst::NTSC / 21 );
1616 }
1717
1818 auto PSG::unload ()->void {
@@ -38,8 +38,8 @@ namespace ares::MyVision {
3838
3939 auto PSG::power ()->void {
4040 AY38910::power ();
41- // real-hardware clock is unknown, we used the same value as spectrum and MSX as placeholder
42- Thread::create (Constants::Colorburst::NTSC / 16 , std::bind_front (&PSG::main, this ));
41+ // The divider of 21 is a guess, but a good one. Pitch seems the same as real hardware.
42+ Thread::create (Constants::Colorburst::NTSC / 21 , std::bind_front (&PSG::main, this ));
4343
4444 for (uint level: range (16 )) {
4545 volume[level] = 1.0 / pow (2 , 1.0 / 2 * (15 - level));
You can’t perform that action at this time.
0 commit comments