Re: Is it possible to specify sampling rate of audio capture



On Thu, 14 Aug 2008 12:26:22 -0700 (PDT), paul wrote:

Is it possible to specify the sampling rate in Directsound (and
waveIn)? If so how?

Of course. You specify the sampling rate as part of the WAVEFORMATEX
structure.

Also is it possible to enumerate the audio capture devices with waveIn
like Directsound does?

Yes. waveInGetNumDevs() and waveInGetDevCaps().

--
http://www.chrisnet.net/code.htm
[MS MVP for DirectShow / MediaFoundation]
.



Relevant Pages

  • Re: read data from microphone continuously
    ... instance, silence detection application. ... is there any sample code? ... You can use waveIn, DirectSound or DirectShow. ...
    (microsoft.public.win32.programmer.directx.audio)
  • Is it possible to specify sampling rate of audio capture
    ... I am new to DirectSound, I need to capture audio from microphone (and ... directsound and wavein API. ... Is it possible to specify the sampling rate in Directsound (and ...
    (microsoft.public.win32.programmer.mmedia)
  • Re: newbie : mic capture width ms vc++
    ... The alternatives are DirectSound and WinMM (waveIn) ... Vista which adds a slight bit of latency. ...
    (microsoft.public.win32.programmer.directx.audio)
  • Re: newbie : mic capture width ms vc++
    ... The alternatives are DirectSound and WinMM (waveIn) ... Vista which adds a slight bit of latency. ...
    (microsoft.public.win32.programmer.directx.audio)
  • Re: DirectSound example sought
    ... is that it simply crashes the computer if DirectSound is not installed, ... >Here's an extremely simple one I wrote as a sample, but you can retro fit ... >Take a look at the oscillator classes, and the modified dsutil.cpp where the ... MVP Tips: http://www.flounder.com/mvp_tips.htm ...
    (microsoft.public.win32.programmer.mmedia)

Loading