Get the number of bytes has been processed for the queued buffer.
int32_t audio_dma_get_buffer_size( struct audio_dma_descriptor *const desc, enum audio_dir dir )
This function returns the number of bytes has been processed in the buffer queue of the driver instance. The application can use this function to know how many bytes has been processed.
Type: struct audio_dma_descriptor Struct *const
Pointer to audio driver descriptor
Type: enum audio_dir Enum
Identifies flush the read or write queue
Type: int32_t
The number of bytes that have been processed for this buffer