I have a working MP3 decoder in a thread, using libresample and
libmp3lame, but I'm not really happy with it yet.... Not sure about the
legalities but if anybody wants to try this work in progress just let me
know

Sam

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of James Sharp
Sent: Saturday, September 06, 2003 4:14 PM
To: [EMAIL PROTECTED]
Subject: Re: [Asterisk-Users] MP3 streams for MOH: idea


>
> [thread change, different topic]
>>is
> How about a little tiny program that connects to a remote host, grabs 
> the contents of an MP3 stream, and pushes it into a FIFO locally?  It 
> would be a raw TCP-to-FIFO stream, so mpg123 would be able to digest 
> it as if it was a local file.  The program would take two arguments: 
> remote hostname/IP and port, and then the file to which the output 
> would be sent.  I don't know how mpg123 handles blocking...

Is there any particular reason (rather than not having time to code one
and embed it into *) why we can't have our own in-thread connection to an
MP3 stream or file, rather than spawning off a process (fork() is
expensive as compared to pthread_create()) of mpg123 to play the
stream/file?

It seems that this spawning/hoping the process dies cleanly is a thorn in
a few people's side. _______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to