From 4ff2cf4f0c96908f28c5037521251e0c809130bb Mon Sep 17 00:00:00 2001 From: Mohamed Tarek Date: Sat, 7 Aug 2010 17:55:02 +0000 Subject: WMA Voice now plays and seeks in the sim. The code is still in floating point, and is not added to the main build. There's still a bug with the decoder in the current state that it outputs a fewer number of samples than ffmpeg's. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27744 a1c6a512-1295-4272-9138-f99709370657 --- apps/metadata/asf.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps/metadata/asf.c') diff --git a/apps/metadata/asf.c b/apps/metadata/asf.c index ba1b8972af..c445e485a2 100644 --- a/apps/metadata/asf.c +++ b/apps/metadata/asf.c @@ -357,6 +357,11 @@ static int asf_parse_header(int fd, struct mp3entry* id3, wfx->audiostream = flags&0x7f; /* Correct codectype to redirect playback to the proper .codec */ id3->codectype = AFMT_WMAPRO; + } else if (wfx->codec_id == ASF_CODEC_ID_WMAVOICE) { + read(fd, wfx->data, wfx->datalen); + lseek(fd,current.size - 24 - 72 - wfx->datalen,SEEK_CUR); + wfx->audiostream = flags&0x7f; + id3->codectype = AFMT_WMAVOICE; } else { DEBUGF("Unsupported WMA codec (Lossless, Voice, etc)\n"); lseek(fd,current.size - 24 - 72,SEEK_CUR); -- cgit v1.2.3