Re: sound rendering problem



On Wed, 24 Jan 2007 18:14:41 +0600, Tulup wrote:

Hmmm. Very interesting information.
Because MSVAD is software device, i suppose that internal clock - timer that
triggers with 10ms interval.
To tell the truth, i don't quite understand what request is responsible for
audio data moving.
Is it Dpc that triggers with timer or IMiniportWavePciStream::GetPosition
client request? There are only one call IPortWaveCyclic::Notify in dpc.
Using debug output i see calls for IMiniportWavePciStream::GetPosition that
calculates byte dispacements and subsequent CopyFrom calls for total length
= bytedispacement.

I haven't gone through that sample in great detail but I believe it checks
every 10ms on the timer to see if it has sufficient byte displacement of
size requested. There are different variations of the sample so I could be
confusing them.

source data will coming from another part of MSVAD. i planed use mvsad audio
renderer filter for passing custom pcm data within scope of directshow. so
source data in general may coming from another live audio source, file with
audio stream or custom audio source filter.
currently i simple use preloaded audio buffer from the disk and tesing audio
playback.

I would consider using a much simpler DirectShow push source filter and a
custom DirectShow renderer.

--
http://www.chrisnet.net/code.htm
http://www.avdevforum.com/AV/viewforum.php?f=7
.



Relevant Pages