fvdhoef / vera-module

Versatile Embedded Retro Adapter
MIT License
107 stars 44 forks source link

Feature Request: Expose FIFO_EMPTY status bit #14

Closed ZeroByteOrg closed 2 years ago

ZeroByteOrg commented 2 years ago

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.