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 3584968 commit 088136f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/audio/sn76489.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void SNG_set_quality( uint32_t q) {
void sn76489_reset() {
int i;
sng.clock = 3579545;
SNG_set_rate(11000);
SNG_set_rate(44100);
SNG_set_quality(0);
sng.base_count = 0;

Expand Down
4 changes: 3 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ 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 = 11000;
#if PICO_ON_DEVICE
static const int sound_frequency = 44100;
#endif
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 088136f

Please sign in to comment.