diff options
| author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-05-08 20:18:35 +0000 |
|---|---|---|
| committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-05-08 20:18:35 +0000 |
| commit | d68d02ec115d464e40ee70fa117d0a43158c9376 (patch) | |
| tree | 19c017902a18ce71f63801ab2e040e8cfae4ca78 /apps/codec_thread.c | |
| parent | b452fa061d2f4e88466f9dbadc8f52425dcd2d19 (diff) | |
| download | rockbox-d68d02ec115d464e40ee70fa117d0a43158c9376.zip rockbox-d68d02ec115d464e40ee70fa117d0a43158c9376.tar.gz rockbox-d68d02ec115d464e40ee70fa117d0a43158c9376.tar.bz2 rockbox-d68d02ec115d464e40ee70fa117d0a43158c9376.tar.xz | |
Move implementation of codec_get_buffer() to codec.c, make related variables static.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29839 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codec_thread.c')
| -rw-r--r-- | apps/codec_thread.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/apps/codec_thread.c b/apps/codec_thread.c index 7cf45c3..4801c4a 100644 --- a/apps/codec_thread.c +++ b/apps/codec_thread.c @@ -208,19 +208,6 @@ void codec_thread_do_callback(void (*fn)(void), unsigned int *id) /** --- codec API callbacks --- **/ -static void * codec_get_buffer(size_t *size) -{ - ssize_t s = CODEC_SIZE - codec_size; - void *buf = &codecbuf[codec_size]; - ALIGN_BUFFER(buf, s, CACHEALIGN_SIZE); - - if (s <= 0) - return NULL; - - *size = s; - return buf; -} - static void codec_pcmbuf_insert_callback( const void *ch1, const void *ch2, int count) { @@ -420,7 +407,7 @@ void codec_init_codec_api(void) { ci.dsp = (struct dsp_config *)dsp_configure(NULL, DSP_MYDSP, CODEC_IDX_AUDIO); - ci.codec_get_buffer = codec_get_buffer; + ci.codec_get_buffer = codeclib_get_buffer; ci.pcmbuf_insert = codec_pcmbuf_insert_callback; ci.set_elapsed = audio_codec_update_elapsed; ci.read_filebuf = codec_filebuf_callback; |