[vorbis-dev] ogg123 buffer -- help!?!?

Kenneth Arnold kcarnold at yahoo.com
Tue Aug 1 06:39:55 PDT 2000



(testing email setup...)

On Mon, Jul 31, 2000 at 12:16:23PM -0700, Monty wrote:
> > >
> > >> Can somebody give me some ideas on how to do buffering cross-platform?
> > >> 
> > >> open (O_NONBLOCK) - ???
> > >> select (fd+1, NULL, &set, NULL, &tv) - NO - Unix only
> > >
> > >Actually, some variant of this is available just about everywhere.
> > 
> > Some variant yes, the classic non crossplatform version is using
> > file descriptors like the example :)
> 
> Meaning that the same functionality exists, and you can wrap it.  No ifdefs 
> needed (although a single small ifdef jail will make it more convenient you 
> don't need one).

So if I write up a buffer depending on the ability to determine whether or
not a write will block, this can be ported to, say, Windows without much
difficulty?

Kenneth

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/



More information about the Vorbis-dev mailing list