Clifton Craig
2010-Apr-29 20:45 UTC
[Speex-dev] Simple example of decoding streaming audio realtime?
Hi, I'm new to Speex and a little uncomfortable in C programming. I'm looking for a simple example of how I'd use Speex to decode a speex file read off of an network stream and pass the decoded samples to an audio player. I have speex running in an iPhone project and I started digging thru the speexdec.c example trying to refactor as I made sense of the API calls. The example is a little cryptic and involved and I was wondering if there was a watered down version or if someone could whip one up for me. Thanx in advance! Clifton Craig Software Engineer http://codeforfun.wordpress.com clifton.craig at gmail.com
Conrad Parker
2010-Apr-30 01:59 UTC
[Speex-dev] Simple example of decoding streaming audio realtime?
On 30 April 2010 05:45, Clifton Craig <clifton.craig at gmail.com> wrote:> Hi, > > I'm new to Speex and a little uncomfortable in C programming. I'm looking for a simple example of how I'd use Speex to decode a speex file read off of an network stream and pass the decoded samples to an audio player. I have speex running in an iPhone project and I started digging thru the speexdec.c example trying to refactor as I made sense of the API calls. The example is a little cryptic and involved and I was wondering if there was a watered down version or if someone could whip one up for me. Thanx in advance!Hi, you could try using libfishsound and liboggz, like in this sample decoder from the libfishsound source: http://git.xiph.org/?p=libfishsound.git;a=blob;f=src/examples/fishsound-decode.c;h=d9c178d44281f73ede3c73caccaeebbf1fa2169a;hb=HEAD cheers, Conrad.
Randy Yates
2010-Apr-30 02:33 UTC
[Speex-dev] Simple example of decoding streaming audio realtime?
Clifton Craig <clifton.craig at gmail.com> writes:> Hi, > > I'm new to Speex and a little uncomfortable in C programming. I'm > looking for a simple example of how I'd use Speex to decode a speex > file read off of an network stream and pass the decoded samples to an > audio player. I have speex running in an iPhone project and I started > digging thru the speexdec.c example trying to refactor as I made sense > of the API calls. The example is a little cryptic and involved and I > was wondering if there was a watered down version or if someone could > whip one up for me. Thanx in advance!Let me get this straight: you're a software engineer (by your .sig), you're uncomfortable in C, and you want someone to write your code for you? Incredible. -- Randy Yates % "She tells me that she likes me very much, Digital Signal Labs % but when I try to touch, she makes it mailto://yates at ieee.org % all too clear." http://www.digitalsignallabs.com % 'Yours Truly, 2095', *Time*, ELO
Clifton Craig
2010-Apr-30 02:38 UTC
[Speex-dev] Simple example of decoding streaming audio realtime?
I'm a software engineer. I'm terribly uncomfortable with C. I want someone to show me a simplified use of Speex decoding. FWIW I'm finally getting my head around the API but the example had me a little lost with its cryptic variable names and monolithic nature. The example I'm asking for is way simpler than the final code I will ship to production so in essence, I'm looking for a how-to or head start. I can pick up and run once I know which pieces do what. That may not have been clear from my earlier email. On Apr 29, 2010, at 10:33 PM, Randy Yates wrote:> Clifton Craig <clifton.craig at gmail.com> writes: > >> Hi, >> >> I'm new to Speex and a little uncomfortable in C programming. I'm >> looking for a simple example of how I'd use Speex to decode a speex >> file read off of an network stream and pass the decoded samples to an >> audio player. I have speex running in an iPhone project and I started >> digging thru the speexdec.c example trying to refactor as I made sense >> of the API calls. The example is a little cryptic and involved and I >> was wondering if there was a watered down version or if someone could >> whip one up for me. Thanx in advance! > > Let me get this straight: you're a software engineer (by your .sig), > you're uncomfortable in C, and you want someone to write your code for > you? > > Incredible. > -- > Randy Yates % "She tells me that she likes me very much, > Digital Signal Labs % but when I try to touch, she makes it > mailto://yates at ieee.org % all too clear." > http://www.digitalsignallabs.com % 'Yours Truly, 2095', *Time*, ELO
Clifton Craig
2010-Apr-30 14:53 UTC
[Speex-dev] Simple example of decoding streaming audio realtime?
Conrad, That's exactly what I was looking for. I just got finish trying several attempts at porting libfishsound to XCode/CocoaTouch land but am facing dependency issues on the other xiph libraries. (liboggz, libvorbis, libflac, etc.) Rest assured I know what the issues are and how to address them. I am at a fork here. I can either port the bulk of the xiph libraries to XCode or continue on my original path trying to get just Speex and libogg running and with my original progress either approach appears equal in terms of effort. I should also add that my original comment, being uncomfortable with C, really applies to more than just C. I'm uncomfortable with everything that goes along with C... the configure scripts, the make files, the dependency resolution. What I'm really looking for is somebody who has taken the battle scars and trail-blazed a path into XCode/CocoaTouch. At any rate I appreciate your help. Thanks again. On Apr 29, 2010, at 9:59 PM, Conrad Parker wrote:> On 30 April 2010 05:45, Clifton Craig <clifton.craig at gmail.com> wrote: >> Hi, >> >> I'm new to Speex and a little uncomfortable in C programming. I'm looking for a simple example of how I'd use Speex to decode a speex file read off of an network stream and pass the decoded samples to an audio player. I have speex running in an iPhone project and I started digging thru the speexdec.c example trying to refactor as I made sense of the API calls. The example is a little cryptic and involved and I was wondering if there was a watered down version or if someone could whip one up for me. Thanx in advance! > > Hi, > > you could try using libfishsound and liboggz, like in this sample > decoder from the libfishsound source: > > http://git.xiph.org/?p=libfishsound.git;a=blob;f=src/examples/fishsound-decode.c;h=d9c178d44281f73ede3c73caccaeebbf1fa2169a;hb=HEAD > > cheers, > > Conrad.
Apparently Analagous Threads
- Simple example of decoding streaming audio realtime?
- Simple example of decoding streaming audio realtime?
- Decoding from memory using libfishsound
- liboggplay, liboggz, libfishsound migrated to git.xiph.org
- liboggplay, liboggz, libfishsound migrated to git.xiph.org