comparison sms.c @ 2384:03e6ac327ba0

Handle changes to sample rate while content is running
author Michael Pavone <pavone@retrodev.com>
date Tue, 21 Nov 2023 20:47:11 -0800
parents 26597f9805b4
children c97609fe8315
comparison
equal deleted inserted replaced
2383:ee0cc07dc406 2384:03e6ac327ba0
681 681
682 static void config_updated(system_header *system) 682 static void config_updated(system_header *system)
683 { 683 {
684 sms_context *sms = (sms_context *)system; 684 sms_context *sms = (sms_context *)system;
685 setup_io_devices(config, &system->info, &sms->io); 685 setup_io_devices(config, &system->info, &sms->io);
686 //sample rate may have changed
687 psg_adjust_master_clock(sms->psg, sms->master_clock);
686 } 688 }
687 689
688 static void toggle_debug_view(system_header *system, uint8_t debug_view) 690 static void toggle_debug_view(system_header *system, uint8_t debug_view)
689 { 691 {
690 #ifndef IS_LIB 692 #ifndef IS_LIB