How do you specify a callback for rb->pcm_play_data()
?
original title: "c - Rockbox audio format"
How do you specify a callback for rb->pcm_play_data()
?
Come si specifica un callback per rb-> pcm_play_data ()?
Questo è il riepilogo dopo la traduzione, se è necessario visualizzare la traduzione completa, fare clic sull'icona "traduci"
The prototype for the callback function is as follows:
*start
should be set to point to the region of memory where your PCM data is stored (16-bit signed integers), and*size
should be the size of this region.Once you've written your callback, call
rb->pcm_play_data()
, and enjoy the music!