kopia lustrzana https://github.com/Jean-MarcHarvengt/MCUME
fix audio glitch at 60Hz in Teensy nofrendo from Krzysztof
rodzic
bf07889113
commit
8abd97907a
|
@ -91,7 +91,7 @@ static int osd_init_sound(void)
|
|||
|
||||
void osd_getsoundinfo(sndinfo_t *info)
|
||||
{
|
||||
info->sample_rate = 22050;
|
||||
info->sample_rate = (22050*20000)/16666; // fix for 60Hz
|
||||
info->bps = 16;
|
||||
}
|
||||
|
||||
|
|
|
@ -210,7 +210,7 @@ void setup() {
|
|||
#endif
|
||||
emu_init();
|
||||
|
||||
myTimer.begin(vblCount, 20000); //to run every 20ms
|
||||
myTimer.begin(vblCount, 16666); //to run every 16.6666ms
|
||||
}
|
||||
|
||||
// ****************************************************
|
||||
|
|
Ładowanie…
Reference in New Issue