diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-06-06 00:35:21 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-06-06 00:35:21 +0000 |
| commit | 4aaa3213290cf7c5f65b9660ae3dd890974ac3b3 (patch) | |
| tree | ef194c98cbc282b5c98998e1362d9d4a3317e15a /apps | |
| parent | a12ccabf040f44c60fb677d7f5c969f55aaf8e2b (diff) | |
| download | rockbox-4aaa3213290cf7c5f65b9660ae3dd890974ac3b3.zip rockbox-4aaa3213290cf7c5f65b9660ae3dd890974ac3b3.tar.gz rockbox-4aaa3213290cf7c5f65b9660ae3dd890974ac3b3.tar.bz2 rockbox-4aaa3213290cf7c5f65b9660ae3dd890974ac3b3.tar.xz | |
iRiver: Support the ID3V1 first option, add some dummy functions
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6584 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/playback.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/apps/playback.c b/apps/playback.c index d7020e5..6751266 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -166,6 +166,8 @@ static struct codec_api ci; variable keeps information about whether to go a next/previous track. */ static int new_track; +static bool v1first = false; + #ifdef SIMULATOR bool audiobuffer_insert_sim(char *buf, size_t length) { @@ -596,7 +598,7 @@ bool audio_load_track(int offset, bool start_play) switch (tracks[track_widx].codectype) { case AFMT_MPA_L3: /* Should check the return value. */ - mp3info(&tracks[track_widx].id3, trackname, true); + mp3info(&tracks[track_widx].id3, trackname, v1first); lseek(fd, 0, SEEK_SET); get_mp3file_info(fd, &tracks[track_widx].mp3data); logf("T:%s", tracks[track_widx].id3.title); @@ -1129,6 +1131,23 @@ int audio_status(void) return ret; } +int audio_get_file_pos(void) +{ + return 0; +} + +#ifndef SIMULATOR +void audio_set_buffer_margin(int seconds) +{ + (void)seconds; +} +#endif + +void mpeg_id3_options(bool _v1first) +{ + v1first = _v1first; +} + void audio_init(void) { logf("audio api init"); |