I've been reading and rereading the documentation, but there are still some 
things I am not understanding.

1. pymedia.audio.sound.Output has a format field in its constructor.  I 
believe that the list of possible values for this field are at the bottom of 
the doc page for pymedia.audio.sound.  Some of the format designators are 
self-explanatory, but others are not.  Is there documentation somewhere for 
what these constants mean?  For example, what is the difference between 
AFMT_S16_{LE, NE, BE}?  Which one do I use for outputing in ogg?

2. In the audio player example in the tutorial, there is the statement:

In the case when the decoder has enough data to decompress, it'll return Frame 
with all essential parameters set. If it returns None, you need to pass more 
data to it by reading the file further and passing it to the decoder.

I don't understand how to implement this requirement.  If the decoder returns 
None, how much more data do we need to pass?  What happens if we pass too 
much data?  In the code from the fully functional example, I don't see where 
the code requests more data in an effort to satisfy the decoder and get a 
Frame back rather than None.  If that code is not there, why is it that the 
fully functional example does not implement a requirement specified in the 
documentation?

3. Where is the Frame documented?  The same fully functional example gets 
frames back from the demultiplexor -- these are called "sub stream data" in 
other places in the documentation -- and then indexes one of these (fr[0] and 
fr[1]).  Where is the documentation for these objects?  Is there an fr[2]?

4. Is class Player just a higher level way of accessing the play functionality 
of PyMedia?  If so, is there ever any reason to use the procedures described 
in the tutorial for playing?  Maybe I don't need answers to the previous 
questions if I should just be using Player.  If that's true, I wish that the 
tutorial had pointed me in this direction.
-- 
Jeffrey Barish

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Pymedia-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pymedia-users

Reply via email to