Hello.
I have been looking at the hello_audio example.
I want to be able to refill a buffer in the empty_buffer_done callback but I can't really understand in the given example how to get at which buffer is being returned.
The definition of the callback in this example is different from the definition of the EmptyBufferDone callback as it is defined in the library code.
Here is the callback from the example (apologies for not using the code feature to paste this but it is not easy to do that when you can't see):
static void input_buffer_callback(void *data, COMPONENT_T * comp) {
// do nothing - could add a callback to the user
// to indicate more buffers may be available.
}
Any ideas of how I can identify and refill the emptied buffer?
Mike