mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Make PCM->driver interface about as simple as it will get. Registered callback, zero data, alignment and stops are handled entirely inside pcm.c; driver merely calls fixed pcm.c callback. Remove pcm_record_more and do it just like playback; the original reason behind it isn't very practical in general. Everything checks out on supported targets. There wer some compat changes I can't check out on many unsupoorted but if there's a problem it will be a minor oops. Plugins become incompatible due to recording tweak-- full update. Sorted API.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26253 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6688988ec4
commit
d56999890f
19 changed files with 277 additions and 460 deletions
|
|
@ -104,13 +104,10 @@ static inline void fill_dma_buf(int offset)
|
|||
p = tmp_p;
|
||||
if (l >= lend)
|
||||
return;
|
||||
else if (pcm_callback_for_more)
|
||||
pcm_callback_for_more((unsigned char**)&p,
|
||||
&p_size);
|
||||
|
||||
pcm_play_get_more_callback((void**)&p, &p_size);
|
||||
}
|
||||
while (p_size);
|
||||
|
||||
pcm_play_dma_stopped_callback();
|
||||
}
|
||||
|
||||
if (l < lend)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue