[vorbis-dev] ogg123 HTTP streaming

Robin Rowe Robin.Rowe at MovieEditor.com
Sat Jul 29 21:16:39 PDT 2000



Correct, use WIN32 threads.

>From within your C++ object call _beginthread(func,0,this) where func is a
member function you write that must be in the form static void __cdecl
f(void* data). Since static member functions have no 'this' pointer you will
want to cast 'data' back to a pointer to your object inside of func to
regain access. And, away you go. It is usually best to immediately call a
non-static member function on the cast object pointer so you don't have to
keep dereferencing yourself. From within func be careful to explicitly call
_endthread() before returning. Call TerminateThread() on the handle returned
by _beginthread() if you must kill the thread externally. Include process.h.

Cheers,

Robin

-----Original Message-----
From: volsung at asu.edu <volsung at asu.edu>
To: vorbis-dev at xiph.org <vorbis-dev at xiph.org>
Date: Saturday, July 29, 2000 8:26 PM
Subject: Re: [vorbis-dev] ogg123 HTTP streaming

>I can't figure out how to work with the Win32 API, which seems
>to require threads to do effective audio playback.
>
>Stan Seibert

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



More information about the Vorbis-dev mailing list