[Speex-dev] Help decompressing Speex audio

Clifton Craig clifton.craig at gmail.com
Mon May 3 13:15:36 PDT 2010


I have an audio file compressed by JSpeex that I'm trying to decompress on the iPhone. I've been trying to work from the speexdec example in an attempt to port the core logic to ObjC. I have a class that does the decode and passes the result back to another class. (currently the other class is a unit test.) My other class is writing the converted output to disk. I compare the results of my rewrite against the result of running the same file against the speexdec.c example. I've gotten pretty far as the audio is decompressing. My problem is that the converted output is half the size that is generated by the original speexdec.c example. It plays, but it appears to play at double the speed. I'm certain that there is something I am missing in my algorithm and if someone could lend a hand I'd be so appreciative. I'm attaching my unit test as well as my rewritten example in ObjC



Clifton Craig
Software Engineer
http://codeforfun.wordpress.com
clifton.craig at gmail.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: MQSpeexDecoderTest.m
Type: application/octet-stream
Size: 3177 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20100503/6dc1785a/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MQSpeexDecoder.h
Type: application/octet-stream
Size: 869 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20100503/6dc1785a/attachment-0001.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MQSpeexDecoder.m
Type: application/octet-stream
Size: 4389 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20100503/6dc1785a/attachment-0002.obj 


More information about the Speex-dev mailing list