#include <cafe/uac.h> int UACOUTSetDataConsumed(usb_mic_handle_t h_mic, unsigned int c_samples);
|h_mic||Instance handle returned via
|c_samples||The number of PCM samples (16-bit signed integer) that the application has taken from the ring buffer. One sample consists of the interleaved set of PCM data for all channels.|
A value of zero indicates success and any other value the type of error that was encountered.
Calling this function will update the output ring buffer state in the UAC library.
The count is in samples, not bytes. One sample is
sizeof(short int) * <number-of-channels>.
Since this function will only update the internal state in the library, it is of no concern whether the data in the output ring buffer is valid.
This function is designed to be callable from a timing sensitive thread such as an AX callback function.
The UAC output system is designed to operate at a nominal pull rate of either 32kHz or 48kHz, as
This function serves for streaming output as
serves for streaming input.
|Background||Do not call this function from the background.|
|Interrupt handler||Do not call this function from any interrupt handler.|
|Exception handler||Do not call this function from any exception handler.|
2013-05-29 Initial version.