I think you're right. I would suggest to recreate the Demuxer. Then it is safe to seek(0). In case if there is a compression in the wav file you will need to reset the Decoder also. (dec.reset()) Dmitry/
----- Original Message ----- From: "Matt Hammond" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Tuesday, December 12, 2006 1:46 AM Subject: Re: [Pymedia-users] Help with pymedia. > Usually not iirc. Though there are probably numerous extensions :-) > > seek(0) ... does that return to the start of the file or of the audio data > in the file? If its the former, then the headers could be being processed > as audio data, and they may well not be an exact multiple of audio frames > in length. Perhaps this would result in a slight audible click (the > headers) followed by swapped round channels? > > > > Matt > > On Tue, 12 Dec 2006 02:08:34 -0000, Dmitry Borisov <[EMAIL PROTECTED]> wrote: > >> Is there any compression in a wav file ? >> Dmitry/ >> ----- Original Message ----- >> From: Khaldoon Al-Naimi >> To: [email protected] >> Sent: Thursday, December 07, 2006 8:26 AM >> Subject: [Pymedia-users] Help with pymedia. >> >> >> Hi all, >> >> Trying to stream 5.1 using pymedia, while everything seems to be OK it >> starts switching channels around when it comes to the end of the 5.1 wav >> content. I do a loop back mechanism that discovers if I am getting close >> to the end of the wav file and read the last complete frame and then >> rewind the file to the beginning using seek(0). >> >> What does it switch the 5.1 channels around?! >> >> Has anyone come across this problem before?! >> >> How do I go about solving it? >> >> >> Many thanks for your help. >> >> >> Regards >> >> Khaldoon >> >> >> >> ------------------------------------------------------------------------------ >> >> >> ------------------------------------------------------------------------- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to >> share your >> opinions on IT & business topics through brief surveys - and earn cash >> >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> >> >> ------------------------------------------------------------------------------ >> >> >> _______________________________________________ >> Pymedia-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/pymedia-users > > > > -- > | Matt Hammond > | Research Engineer, FM&T, BBC, Kingswood Warren, Tadworth, Surrey, UK > | http://kamaelia.sf.net/ > | http://www.bbc.co.uk/rd/ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Pymedia-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/pymedia-users > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Pymedia-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pymedia-users
