path: root/apps/voice_thread.c
diff options
authorMichael Sevakis <>2010-05-24 16:42:32 +0000
committerMichael Sevakis <>2010-05-24 16:42:32 +0000
commitd56999890f2aacf197d9ae4383313271499509a9 (patch)
tree76a0177e2cf19bb15a065199b812ef20158422e1 /apps/voice_thread.c
parent6688988ec42aa2254c8e370ec1932033a258b6fa (diff)
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:// a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/voice_thread.c')
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/voice_thread.c b/apps/voice_thread.c
index 076bd2ea1b..a65ec566d1 100644
--- a/apps/voice_thread.c
+++ b/apps/voice_thread.c
@@ -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 */