mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04: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
|
@ -89,7 +89,7 @@ enum voice_thread_messages
|
|||
/* Structure to store clip data callback info */
|
||||
struct voice_info
|
||||
{
|
||||
pcm_more_callback_type get_more; /* Callback to get more clips */
|
||||
pcm_play_callback_type get_more; /* Callback to get more clips */
|
||||
unsigned char *start; /* Start of clip */
|
||||
size_t size; /* Size of clip */
|
||||
};
|
||||
|
@ -117,7 +117,7 @@ static inline bool playback_is_playing(void)
|
|||
|
||||
/* Stop any current clip and start playing a new one */
|
||||
void mp3_play_data(const unsigned char* start, int size,
|
||||
pcm_more_callback_type get_more)
|
||||
pcm_play_callback_type get_more)
|
||||
{
|
||||
/* Shared struct to get data to the thread - once it replies, it has
|
||||
* safely cached it in its own private data */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue