using snack to eat an mp3 stream

Bill Anderson anderson at boi.hp.com
Wed Jan 17 08:26:09 EST 2001


Kare Sjolander wrote:
> 
> Unfortunately this is not possible using Snack and Python currently. I'm
> working on a more native version of Snack for Python which will make such
> functionality possible.
> 
> If you can resort to Tcl for this task the following snippet is a
> complete audio server.
> It even plays multiple simultaneous mp3 streams.
> 
> proc Cmd {sock args} {
>   set snd [snack::sound -channel $sock]
>   $snd play -command "[list close $sock];$snd destroy"
> }
> socket -server Cmd 23654
> 

Cool.

Say, any idea on when one could expect ogg (of ogg-vorbis) support? ;^)=

-- 
Bill Anderson               Linux Specialist
Modular Network Storage     R&D           
Random Quote:
    Portable: survives system reboot.



More information about the Python-list mailing list