[wdmaudiodev] Re: AVStream virtual audio driver: different sound quality dependently on the number of CPU cores.
- From: Tim Roberts <timr@xxxxxxxxx>
- To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
- Date: Sat, 23 Jul 2016 13:38:51 -0700
On Jul 23, 2016, at 4:58 AM, alexander ivash <elderorb@xxxxxxxxx> wrote:
I wish I've learned this a month ago.. :) I switched back to DPC-based
approach with manual triggering KsAttemptProcessing every 10ms, because
'BytesAvailable' in the ProcessPin always seems to be 1764 (which is 10ms
for 44100/stereo/16bit, correct?)
Right. The audio system, in general, tries to work in 10ms chunks.
I think this is probably because of
too small frame size. I've tried to increase it by using
DECLARE_SIMPLE_FRAMING_EX and specifying 1764 * 4 as the fame size, but I
still see 1764 as 'BytesAvailable'. What I'm missing this time?
Your framing structure is basically just a suggestion. There is a negotiation
between the elements of the graph, but ultimately the graph controller (the
Audio Engine, in this case) makes the final decision.
It might be interesting for you to do some cycle-counter timings to see if your
callbacks are happening with sufficient regularity. Having a 10ms timer is
problematic because that's shorter than the normal scheduler interval.
—
Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.
X3P2 EZu�Ǭ>�-��,j�j)m�fj�b�ׯ~���+-���J��r��zf���0vf�v*z�ު笵��zX���+�˛��-
Other related posts: