Closed thejpster closed 9 months ago
Thoughts on sample playback.
write_u16_replicated()
are perfect for converting one 16-bit mono sample into a stereo pair of 16-bit samples.Idea:
0x00000000
. This is mid-rail with 16-bit signed data and should cause the CODEC to detect silence and go to sleep.Todo: Put FLASH_OS
back to what it was, and work out precisely how much RAM we need to allocate for globals.
Sets up the TLV320AIC23B CODEC with some default volume levels, and for 48 kHz 16-bit I2S mode with a 12 MHz crystal.
Also plays a short audio sample. We should probably take that out and wire up the BIOS sample playback API to a ring buffer that is played using DMA.