mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-05-12 11:43:16 -04:00
pcm_mixer: introduce mixer_play_cbs
the added sampr_changed callback can be used to notify the mixer user of frequency changes Change-Id: I309db76576090fd5c019a1ba082af446129dd4a3
This commit is contained in:
parent
86639acc5e
commit
cb04b8167c
20 changed files with 128 additions and 47 deletions
|
|
@ -96,8 +96,13 @@ enum channel_status
|
|||
/** Public interfaces **/
|
||||
|
||||
/* Start playback on a channel */
|
||||
struct mixer_play_cbs {
|
||||
void (*get_more)(const void **start, size_t *size);
|
||||
void (*sampr_changed)(uint32_t sampr);
|
||||
};
|
||||
|
||||
void mixer_channel_play_data(enum pcm_mixer_channel channel,
|
||||
pcm_play_callback_type get_more,
|
||||
const struct mixer_play_cbs* cbs,
|
||||
const void *start, size_t size);
|
||||
|
||||
/* Pause or resume a channel (when started) */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue