waveformatex and fillbuffer()
- From: "James" <j.w at No_Spam_Please zoom co uk>
- Date: Mon, 23 May 2005 17:39:16 -0700
Hi,
I am trying to build a source filter that sends out PCM data with teh
following WAVEFORMATEX struct looks as follows:
WAVESTRUCT fmt;
fmt.wFormatTag = 1; // PCM
fmt.nChannels = 2;
fmt.nSamplesPerSec = 32000;
fmt.nAvgBytesPerSec = 128000;
fmt.nBlockAlign = 4;
fmt.wBitsPerSample = 16;
fmt.cbSize = 0;
When FillBuffer fires for me to fill the buffer with Wav data, I am being
provided with a buffer of size 128KB. Can someone please explain why the
buffer is this size and not 4Bytes (1 samples size) or at least one seconds
worth of buffer space (nBlockAlign*nSamplesPerSec)?
Thanks for any help anyone can give. I cant find antyhing about this
anywhere
James
.
- Follow-Ups:
- Re: waveformatex and fillbuffer()
- From: Thore Karlsen [MVP DX]
- Re: waveformatex and fillbuffer()
- Prev by Date: WM Asf Writer doesn't clean up properly when removed from a graph.
- Next by Date: Why AVI MUX drop Divx compress frame!? before I write it into avi
- Previous by thread: WM Asf Writer doesn't clean up properly when removed from a graph.
- Next by thread: Re: waveformatex and fillbuffer()
- Index(es):
Relevant Pages
|