clock...dont know. but without continuous stream anyway useless...the dac will not work.
so use dma channel ->

enable callbacks in project-> advanced settings

in main : register callbacks


then start it

init buffer, size should match, what you expect in update interval; i use 32bit data ymmv.
int32_t playbuf[4096*2] __attribute__ ((aligned (32)));
and for begin, switch off d-cache, if your cpu has it. (cache management ...for later. :) )
in callbacks put your data, or for "pause" , set data zero. but never stop the running stream !
If you feel a post has answered your question, please click on " Best Answer ".