summaryrefslogtreecommitdiff
path: root/apps/playback.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-06-22 19:41:30 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-06-22 19:41:30 +0000
commit1dd672fe3226fa77113f35e4d72f50b863484c63 (patch)
tree67b424ab990f160dbc8fb238b9fa3390ceba10ed /apps/playback.h
parentb7aaa641b864628d76103b8c9d57c15747560ca7 (diff)
downloadrockbox-1dd672fe3226fa77113f35e4d72f50b863484c63.zip
rockbox-1dd672fe3226fa77113f35e4d72f50b863484c63.tar.gz
rockbox-1dd672fe3226fa77113f35e4d72f50b863484c63.tar.bz2
rockbox-1dd672fe3226fa77113f35e4d72f50b863484c63.tar.xz
moved and renamed the codecs, gave the codecs a new extension (.codec),
unified to a single codec-only API, made a new codeclib, disabled the building of the *2wav plugins git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6812 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playback.h')
-rw-r--r--apps/playback.h54
1 files changed, 0 insertions, 54 deletions
diff --git a/apps/playback.h b/apps/playback.h
index 06b82b4..24fc857 100644
--- a/apps/playback.h
+++ b/apps/playback.h
@@ -51,60 +51,6 @@ struct track_info {
int playlist_offset; /* File location in playlist */
};
-
-/* Codec Interface */
-struct codec_api {
- off_t filesize; /* Total file length */
- off_t curpos; /* Current buffer position */
-
- /* For gapless mp3 */
- struct mp3entry *id3; /* TAG metadata pointer */
- struct mp3info *mp3data; /* MP3 metadata pointer */
- bool *taginfo_ready; /* Is metadata read */
-
- /* Codec should periodically check if stop_codec is set to true.
- In case it's, codec must return with PLUGIN_OK status immediately. */
- bool stop_codec;
- /* Codec should periodically check if reload_codec is set to true.
- In case it's, codec should reload itself without exiting. */
- bool reload_codec;
- /* If seek_time != 0, codec should seek to that song position (in ms)
- if codec supports seeking. */
- int seek_time;
-
- /* Returns buffer to malloc array. Only codeclib should need this. */
- void* (*get_codec_memory)(size_t *size);
- /* Insert PCM data into audio buffer for playback. Playback will start
- automatically. */
- bool (*audiobuffer_insert)(char *data, size_t length);
- /* Set song position in WPS (value in ms). */
- void (*set_elapsed)(unsigned int value);
-
- /* Read next <size> amount bytes from file buffer to <ptr>.
- Will return number of bytes read or 0 if end of file. */
- size_t (*read_filebuf)(void *ptr, size_t size);
- /* Request pointer to file buffer which can be used to read
- <realsize> amount of data. <reqsize> tells the buffer system
- how much data it should try to allocate. If <realsize> is 0,
- end of file is reached. */
- void* (*request_buffer)(size_t *realsize, size_t reqsize);
- /* Advance file buffer position by <amount> amount of bytes. */
- void (*advance_buffer)(size_t amount);
- /* Advance file buffer to a pointer location inside file buffer. */
- void (*advance_buffer_loc)(void *ptr);
- /* Seek file buffer to position <newpos> beginning of file. */
- bool (*seek_buffer)(off_t newpos);
- /* Calculate mp3 seek position from given time data in ms. */
- off_t (*mp3_get_filepos)(int newtime);
- /* Request file change from file buffer. Returns true is next
- track is available and changed. If return value is false,
- codec should exit immediately with PLUGIN_OK status. */
- bool (*request_next_track)(void);
-
- /* Configure different codec buffer parameters. */
- void (*configure)(int setting, void *value);
-};
-
#endif