mirror of
https://github.com/polpo/picogus.git
synced 2026-10-25 21:40:16 +00:00
"Pull" based DMA for SB - doesn't require DMA interval dithering
This commit is contained in:
1 parent
fee4b40d76
commit
a2e72cdc6f
3 files changed
+126
-50
No files matched your search
+2
-2
@@ -137,8 +137,8 @@ void audio_sample_handler(void) {
|
||||
#else
|
||||
uint32_t card_stereo = sbdsp_sample_stereo();
|
||||
#endif
|
||||
sample_l = (int16_t)(card_stereo & 0xFFFF);
|
||||
sample_r = (int16_t)(card_stereo >> 16);
|
||||
sample_l = scale_sample((int16_t)(card_stereo & 0xFFFF), sb_volume, 0);
|
||||
sample_r = scale_sample((int16_t)(card_stereo >> 16), sb_volume, 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in new issue
Block a user