There is currently a fifo_empty wire in the PCM fifo module. Making this available (read-only) as bit6 of AUDIO_CTRL ($9F3B in CommanderX16 memory map) would be very useful for applications that wish to know when an audio clip is completely finished playing for various synchronization purposes, as well as being a way to check for buffer underflow in applications trying to minimize the FIFO latency so that they may increase the fill rate.
There is currently a fifo_empty wire in the PCM fifo module. Making this available (read-only) as bit6 of AUDIO_CTRL ($9F3B in CommanderX16 memory map) would be very useful for applications that wish to know when an audio clip is completely finished playing for various synchronization purposes, as well as being a way to check for buffer underflow in applications trying to minimize the FIFO latency so that they may increase the fill rate.