diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2011-03-16 05:38:37 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2011-03-16 05:38:37 +0000 |
commit | 56dd75d204f861785ca78ae1c6eb506d5f2ea7e9 (patch) | |
tree | 19809cf7976dd47513171bac706a061ef130b2b2 /apps/codec_thread.c | |
parent | dce799641d2f75feda39b087f03a1f64620f3d6b (diff) | |
download | rockbox-56dd75d204f861785ca78ae1c6eb506d5f2ea7e9.tar.gz rockbox-56dd75d204f861785ca78ae1c6eb506d5f2ea7e9.zip |
Purge buffer and codec APIs existing exclusively in support of mpa.codec and fix that to not require them: buf_get_offset and ci.advance_buffer_loc. Sort APIs; everything must become incompatible. :(
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29595 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codec_thread.c')
-rw-r--r-- | apps/codec_thread.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/apps/codec_thread.c b/apps/codec_thread.c index 9b17d7cf42..65a7ebc7d5 100644 --- a/apps/codec_thread.c +++ b/apps/codec_thread.c | |||
@@ -337,12 +337,6 @@ static void codec_advance_buffer_callback(size_t amount) | |||
337 | codec_set_offset_callback(ci.curpos); | 337 | codec_set_offset_callback(ci.curpos); |
338 | } | 338 | } |
339 | 339 | ||
340 | static void codec_advance_buffer_loc_callback(void *ptr) | ||
341 | { | ||
342 | size_t amount = buf_get_offset(get_audio_hid(), ptr); | ||
343 | codec_advance_buffer_callback(amount); | ||
344 | } | ||
345 | |||
346 | static bool codec_seek_buffer_callback(size_t newpos) | 340 | static bool codec_seek_buffer_callback(size_t newpos) |
347 | { | 341 | { |
348 | logf("codec_seek_buffer_callback"); | 342 | logf("codec_seek_buffer_callback"); |
@@ -443,7 +437,6 @@ void codec_init_codec_api(void) | |||
443 | ci.read_filebuf = codec_filebuf_callback; | 437 | ci.read_filebuf = codec_filebuf_callback; |
444 | ci.request_buffer = codec_request_buffer_callback; | 438 | ci.request_buffer = codec_request_buffer_callback; |
445 | ci.advance_buffer = codec_advance_buffer_callback; | 439 | ci.advance_buffer = codec_advance_buffer_callback; |
446 | ci.advance_buffer_loc = codec_advance_buffer_loc_callback; | ||
447 | ci.seek_buffer = codec_seek_buffer_callback; | 440 | ci.seek_buffer = codec_seek_buffer_callback; |
448 | ci.seek_complete = codec_seek_complete_callback; | 441 | ci.seek_complete = codec_seek_complete_callback; |
449 | ci.request_next_track = codec_request_next_track_callback; | 442 | ci.request_next_track = codec_request_next_track_callback; |