DAC demos do send samples from flash memory.
On the contrary, I want the buffer in ram to generate signal in the end_cb callback, regenerating halfbuffer during the streaming of
the precedent one (just normal half-buffer operation).
unfortunately, the signature of the callback is :
Code: Select all
void end_cb1(DACDriver *dacp, [b]const[/b] dacsample_t *buffer, size_t n)
the constiness of dacsample_t *buffer prevent to modify buffer, making the DAC driver pretty unusable if buffer is in ram and need to be generated.
what is the rationale of the constiness of the buffer here ?
Thanks
Alexandre