Skip to content

Commit

Permalink
pc speaker and tandy sn76489 are default sound
Browse files Browse the repository at this point in the history
  • Loading branch information
xrip committed Dec 11, 2023
1 parent e78e65c commit 3584968
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/audio/sn76489.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ void SNG_set_quality( uint32_t q) {
void sn76489_reset() {
int i;
sng.clock = 3579545;
SNG_set_rate(22050);
SNG_set_quality(1);
SNG_set_rate(11000);
SNG_set_quality(0);
sng.base_count = 0;

for (i = 0; i < 3; i++) {
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ void __time_critical_func(render_core)() {
PWM_init_pin(ZX_AY_PWM_PIN0);
PWM_init_pin(ZX_AY_PWM_PIN1);
#ifdef SOUND_SYSTEM
static const int sound_frequency = 22050;
static const int sound_frequency = 11000;
if (!add_repeating_timer_us(-1000000 / sound_frequency, sound_callback, NULL, &sound_timer)) {
logMsg("Failed to add timer");
sleep_ms(3000);
Expand Down

0 comments on commit 3584968

Please sign in to comment.