[vorbis] wishlist for ogg123 += Non-blocking verbose messages

David Balazic david.balazic at uni-mb.si
Mon Jun 11 04:07:19 PDT 2001



Andreas Fuchs (asf at acm.org) wrote :

> Argh, this has been sitting in my outgoing queue for quite some time 
> now... (-: 
> 
> On 2001-05-30, Kenneth Arnold <ken at arnoldnet.net> wrote: 
> > nonblocking possibly, but a simple select on fd 2 might do it (or is 
> > there a way to test if a write will block besides select?). 
> 
> Okay, this here is the hackish solution (patch to the beta4 version, but 
> I think that it ought to work with the newest CVS also): 
> 
>    text/x-patch attachment: ogg123-with-async-verbosity.patch 
> 
> 
> It only checks whether it can write without blocking when writing the 
> "\rTime: %02li:%05.2f [%02li:%05.2f] of %02li:%05.2f, Bitrate: %.1f \r" 
> message, which is kind of suboptimal. I think that it should be done 
> in a uniform way anyway, which would mean that every call to 
> fprintf (stderr...) should be replaced by a function that checks whether 
> it can write, and only then writes to stderr. 

Or you could just stop (ab)using stderr for something it was not
designed for.
 
> Oh, and BTW: this patch adds another command line switch, -a for 
> asyncronous (yes, it could also be "artifact", as it is not really 
> asyncronous I/O, AFAICT (-:). 
> 
> > If you give me a simple remote-control interface (similar to mpg123's 
> > maybe?) I could implement it, but not soon because I have tons of 
> > end-of-year concerns to worry about and I'm not getting graded on 
> > ogg123. Volunteers? 
> 
> Hm, that's next[1] on my TODO list. Right now, apt-get is pulling the 
> mpg123 source over to my computer. 
> 
> [1] Actually, it wasn't. I'll take a look at it as soon as I have 
>     time again, which should be soon. 
> 
> -- 
> Andreas Fuchs, <asf at acm.org>, <d96001 at htlwrn.ac.at>, antifuchs


-- 
David Balazic
--------------
"Be excellent to each other." - Bill & Ted
- - - - - - - - - - - - - - - - - - - - - -

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.




More information about the Vorbis mailing list