[OpenAL] [OggVorbis] Ways to play an Ogg Vorbis file.
Peter Mulholland
darkmatter at blueyonder.co.uk
Tue Apr 17 13:40:06 PDT 2007
Hello Phantom,
Tuesday, April 17, 2007, 9:17:47 PM, you wrote:
> Hi guys,
> When i mean "ways" is how i can load an play an ogg vorbis file. Untill
> now, i know how to load it all to memory and then TRY to play it. But my
> programs end.
> Anyway i was thinking on streaming but streaming from sources, at least in
> audio (and AFAIK), needs to be done multithreaded to be efficient. And
> there's the problem....my program do not support multithreading yet. So i
> was wondering about any other way to do streaming.
You don't NEED multithreading to do the streaming, you just need to
ensure you top up OpenAL's buffers often enough. So, provided you can
guarantee that the buffers will be checked and filled often enough,
you don't need threading. In a game, typically the only way to
reliably ensure that is to start a thread to do the job, though.
What do you mean by "your programs end" ?
--
Best regards,
Peter mailto:darkmatter at blueyonder.co.uk
More information about the Openal
mailing list