Re: 2 questions re: audio buffer
- From: "Chris P. [MVP]" <msdn@xxxxxxxxxxxx>
- Date: Mon, 31 Oct 2005 16:20:46 -0500
On Mon, 31 Oct 2005 16:07:50 -0500, Steve Russell wrote:
> Thanks a lot, Chris. Right now I'm talking about playing from memory. So
> should I keep doing what I'm doing, or would you have a better suggestion?
The amount of memory your dealing with doesn't sound like a lot, so you
could keep doing what your doing.
Streaming is more efficient if you are playing many files of a largely
variable size. In the last project where I dealt with ogg files, we read
one ogg frame at a time (4K), decoded, and stored the decompressed data in
a temporary circular buffer. The read thread that is populating the
playback buffers fetched it's data from the circular buffer. When the
files are potentially large you have no choice but to use a mechanism such
as that.
.
- Follow-Ups:
- Re: 2 questions re: audio buffer
- From: Steve Russell
- Re: 2 questions re: audio buffer
- From: Steve Russell
- Re: 2 questions re: audio buffer
- References:
- Re: 2 questions re: audio buffer
- From: Steve Russell
- Re: 2 questions re: audio buffer
- Prev by Date: Re: 2 questions re: audio buffer
- Next by Date: Re: 2 questions re: audio buffer
- Previous by thread: Re: 2 questions re: audio buffer
- Next by thread: Re: 2 questions re: audio buffer
- Index(es):
Relevant Pages
|