Re: Supporting 16KHz Sampling rate for Wave audio Input

From: neo (neo_at_discussions.microsoft.com)
Date: 06/29/04


Date: Tue, 29 Jun 2004 04:32:01 -0700

hi all,

i am working on UAM,
i have a problem,
i am not able to find out audio driver binding functions,
i.e, how do i associate my audio driver with the waveform api manager?

whenever i run the appilcation it finally gives a sweet debug message in waveOutOpen api stating that the driver is not present...!

help me out
regards
neo

"Sridhar Krishnamurthy" wrote:

> Is there any way to change the SampleRate of the
> SoftwareMixer dynamically ?
> i.e. is the HKLM\Audio\SoftwareMixer
> "SampleRate"=dword:3E80
> value read regulary or used only at only once ?
>
> sridhar
>
>
> "Jegan" <jeganmrdel@hotmail.com> wrote in message
> news:u6cP1BUBEHA.2628@TK2MSFTNGP11.phx.gbl...
> > Thanks very much for your valuable input.
> > You have answered my queries.
> >
> > Jegan
> >
> >
> > "Kent Lottis [MS]" <kentlott@online.microsoft.com> wrote in message
> > news:uBKP7xSBEHA.2484@TK2MSFTNGP12.phx.gbl...
> > > Very few applications bother checking the supported sample rates in
> > > WIDM_GETDEVCAPS, precisely because of the limitation you describe (this
> is
> > > behavior inherited from Windows 3.x)
> > > The "right" way to determine audio driver capabilities is to actually
> call
> > > waveInOpen with the WAVE_QUERY flag.
> > >
> > > I'm not sure I understand your point #2, but the wave manager doesn't
> make
> > > any attempt to mediate between application and driver. If you're writing
> > > your own application, then you don't need to do anything special to
> > > support
> > > 16KHz input - just open the stream and start recording.
> > >
> > > If you want to support 16Khz output, you should set up the software
> mixer
> > > to
> > > use this sample rate. The easiest way to do this is to add reg-key to
> your
> > > platform
> > > HKLM\Audio\SoftwareMixer
> > > "SampleRate"=dword:3E80
> > >
> > > Hope this helps
> > > --
> > > Kent Lottis
> > > Dev Lead, Windows CE Multimedia
> > > Microsoft Corporation
> > >
> > > This posting is provided "AS IS" with no warranties, and confers no
> > > rights.
> > > You assume all risk for your use. © Microsoft Corporation. All rights
> > > reserved.
> > >
> > >
> >
> >
>
>
>