Re: waveformatex and fillbuffer()



On Mon, 23 May 2005 23:03:43 -0700, "James" <j.w at No_Spam_Please zoom
co uk> wrote:

>Hi Thore, Sorry, I looked one too far... I was actually returning 128KB from
>CBaseOutputPin::DecideBufferSize(). What I am actually doing is implementing
>my own audio renderer to captrure PCM data, transform it, then feeding it
>back into a recompression graph (to save it back to disk... I am doing more
>than can be applied to a transform filter).
>
>I got the 128KB from the incoming audio renderer (I then use this to set the
>output on the outgoing wav source filter). The trouble turns out to be in
>the renderer. I have overriden just two funcs:
>
>DoRenderSample() and CheckMediaType()

[...]

>Could you advise why FillBuffer is comming back with 128KB in DoRenderSample
>when I would expect 125KB as per CheckMediaType? Have I just got my math
>wrong?

The buffer size is decided when the filters are negotiating an
allocator. Try overriding CBaseInputPin::GetAllocatorRequirements() on
your renderer and propose a buffer size of 128000 bytes, and see if the
upstream filter respects that.

--
New to newsgroups? Read: http://dev.6581.com/newsgroups.html
.



Relevant Pages

  • Re: Changing the audio device filter
    ... only filter with a major type of audio, 1 input pin and no output pins. ... Save this pin. ... Disconnect and remove the original audio renderer from the graph. ...
    (microsoft.public.win32.programmer.directx.audio)
  • Re: Replace default audio renderer in Dshow video Graph ? C++
    ... > which will build the graph automatically since this is decode only and ... > the audio renderer since the PC my program is running on has more than ... Renderer Filter" topic in the SDK help to review its limitations ... use the Default DirectSound Device. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: IDirectMusic - segment from memory
    ... > How microsoft do in his DirectSound Audio Renderer filter? ... Any filter in the graph has access to the sample Media Time, ...
    (microsoft.public.win32.programmer.directx.audio)
  • Re: Realtime Karaoke like audio application
    ... filter code but finally I have a working ... filter that can mix 2 audio streams into one with adjustable volumes ... Connecting a audio input to the audio renderer ... buffers but allocate a number of them. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: waveformatex and fillbuffer()
    ... >>than can be applied to a transform filter). ... >>I got the 128KB from the incoming audio renderer (I then use this to set the ... >>when I would expect 125KB as per CheckMediaType? ... > your renderer and propose a buffer size of 128000 bytes, ...
    (microsoft.public.win32.programmer.directx.video)