swan: Support higher frequency rates at the emulation core level

This commit is contained in:
Adrian Siekierka 2025-03-11 19:09:57 +01:00 committed by tildearrow
parent 99c022cd82
commit 652f3662af
3 changed files with 13 additions and 7 deletions

View file

@ -96,7 +96,8 @@ void DivPlatformSwan::acquire(short** buf, size_t len) {
writes.pop();
}
swan_sound_tick(&ws);
swan_sound_tick(&ws, chipClock / rate);
swan_sound_sample(&ws);
// Update individual channel buffers
for (int i = 0; i < 4; i++) {