mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-05-12 19:53:18 -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
|
|
@ -1337,7 +1337,10 @@ bool usb_audio_fast_transfer_complete(int ep, int dir, int status, int length)
|
|||
logf("usbaudio: prebuffering done");
|
||||
playback_audio_underflow = false;
|
||||
usb_rx_overflow = false;
|
||||
mixer_channel_play_data(PCM_MIXER_CHAN_USBAUDIO, playback_audio_get_more, NULL, 0);
|
||||
static const struct mixer_play_cbs cbs = {
|
||||
.get_more = playback_audio_get_more,
|
||||
};
|
||||
mixer_channel_play_data(PCM_MIXER_CHAN_USBAUDIO, &cbs, NULL, 0);
|
||||
}
|
||||
restore_irq(oldlevel);
|
||||
retval = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue