diff options
| author | Mohamed Tarek <mt@rockbox.org> | 2009-07-25 15:47:13 +0000 |
|---|---|---|
| committer | Mohamed Tarek <mt@rockbox.org> | 2009-07-25 15:47:13 +0000 |
| commit | b8cccb5ae18f35ea7d210c513bafe10b19fafbd7 (patch) | |
| tree | 901a2d75ad40134a005c3bbb68949f551fc9c50e /apps/metadata | |
| parent | 8f572ca525bf3812799e627a4a716300e412c244 (diff) | |
| download | rockbox-b8cccb5ae18f35ea7d210c513bafe10b19fafbd7.zip rockbox-b8cccb5ae18f35ea7d210c513bafe10b19fafbd7.tar.gz rockbox-b8cccb5ae18f35ea7d210c513bafe10b19fafbd7.tar.bz2 rockbox-b8cccb5ae18f35ea7d210c513bafe10b19fafbd7.tar.xz | |
Adding support for playback of aac audio in rm container, with seeking.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22031 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/metadata')
| -rw-r--r-- | apps/metadata/rm.c | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/apps/metadata/rm.c b/apps/metadata/rm.c index bfaa803..95889c3 100644 --- a/apps/metadata/rm.c +++ b/apps/metadata/rm.c @@ -169,6 +169,11 @@ static inline int real_read_audio_stream_info(int fd, RMContext *rmctx) rmctx->codec_type = cook; break; + case FOURCC('r','a','a','c'): + case FOURCC('r','a','c','p'): + rmctx->codec_type = aac; + break; + default: /* Not a supported codec */ return -1; } @@ -183,7 +188,10 @@ static inline int real_read_audio_stream_info(int fd, RMContext *rmctx) DEBUGF(" fourcc = %s\n",fourcc2str(fourcc)); DEBUGF(" codec_extra_data_length = %ld\n",rmctx->extradata_size); DEBUGF(" codec_extradata :\n"); - print_cook_extradata(rmctx); + if(rmctx->codec_type == cook) { + DEBUGF(" cook_extradata :\n"); + print_cook_extradata(rmctx); + } } @@ -391,12 +399,11 @@ bool get_rm_metadata(int fd, struct mp3entry* id3) id3->artist = id3->id3v1buf[1]; id3->comment = id3->id3v1buf[3]; - /*switch(rmctx->codec_type) + switch(rmctx->codec_type) { - case cook: - id3->codectype = AFMT_COOK; - break; - }*/ + case aac: + id3->codectype = AFMT_RAAC; + } id3->bitrate = rmctx->bit_rate / 1000; id3->frequency = rmctx->sample_rate; |