The main loop exits when stdin reaches EOF. There is likely some data still left in the buffers by the time we begin to terminate. Somewhere between 50-100 ms at 44.1 kHz.
We should instead zero fill the remainder of the buffers and wait for the DMA to read them before shutting down.
The main loop exits when stdin reaches EOF. There is likely some data still left in the buffers by the time we begin to terminate. Somewhere between 50-100 ms at 44.1 kHz.
We should instead zero fill the remainder of the buffers and wait for the DMA to read them before shutting down.