[wdmaudiodev] Re: Incorrect number of samples at 44.1kHz

  • From: ambrish dantrey <a4ambrish@xxxxxxxxx>
  • To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Thu, 7 Nov 2013 10:07:48 +0530

[A little modification to original post. I meant 1792 bytes (448 samples)
not 1792 samples.]

Thanks Matthew. I am using IAudioCaptureClient::GetBuffer method.


On Thu, Nov 7, 2013 at 8:52 AM, Matthew van Eerde <
Matthew.van.Eerde@xxxxxxxxxxxxx> wrote:

>  Hmm… I suspect you’re actually getting 448 samples every 10.16-ish ms,
> which is correct for 44.1 kHz sampling.
>
>
>
>
> http://blogs.msdn.com/b/matthew_van_eerde/archive/2013/07/24/buffer-size-alignment-and-the-audio-period.aspx
>
>
>
> > I open capture stream in shared mode and audio engine is doing sample
> rate conversion from 48 to 44.1 kHz
>
>
>
> What API are you using? WASAPI won’t do sample rate conversion for you.
>
>
>
> *From:* wdmaudiodev-bounce@xxxxxxxxxxxxx [mailto:
> wdmaudiodev-bounce@xxxxxxxxxxxxx] *On Behalf Of *ambrish dantrey
> *Sent:* Wednesday, November 6, 2013 7:11 PM
> *To:* wdmaudiodev@xxxxxxxxxxxxx
> *Subject:* [wdmaudiodev] Incorrect number of samples at 44.1kHz
>
>
>
> When I record audio data (from Microphone or from Loopback capture) at
> 44.1 kHz, I get 1792 samples every 10 ms. Ideally I should be getting 1764
> samples every 10 ms.For all other sample rates (48/96/192 kHz), I get
> correct number of samples. Has anyone else observed it?
>
>
>
> I open capture stream in shared mode and audio engine is doing sample rate
> conversion from 48 to 44.1 kHz. Can this possibly be an issue with audio
> engine samplerate conversion?
>
>
>
> Thanks and regards,
>
> Ambrish
>

Other related posts: