Sampling Rate Problem - AEC

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hello All

I need to ensure the waveapi use 8K sampling rate for wavein and
waveout without any sample rate conversion. In the hardware, apparently
there is an option that can force this, even if this is not the case by
default.

I am using Wave apis on an Pocket PC platform.
If I use the wavein and waveout interfaces at 8K sampling rate, there
is drift in the samples which is bad for AEC.

I can think of two possibilities causing this problem
a) The default audio driver behavior uses two clocks. Generally
playback uses audio hardware clock, record uses a derivation CPU master
clock in the master mode settings (default) of the Audio hardware. CPU
master clock is used in both directions for Slave Mode setting, but
there seems to be no mechanism to access it from user level.

b) Sampling rate conversion (from 44.1K to 8K) in the playback path
causing drift. The Windows mixer may be using a sample rate conversion
which is causing the drift.

My questions:
a) Is there a simple solution to force both paths to use same clock and
sampling rate, since the option does exist at hardware level.
b) Can Windows Mobile DDK help in modifying the behavior for the
specific target?

Your input will be deeply appreciated, since I am grappling with this
problem for quite some time

thanks
Venu

.



Relevant Pages

  • Re: 96KHz and 192KHz Sampling Frequencies
    ... Did you try to tune the Software Mixer to accommodate the hardware sampling rate? ... I have a OMAP Hardware which is interfaced with a TI's Hardware Audio Codec. ... when the hardware audio codec is using 44.1KHz sampling rate all the audio files whose sample rate is less than or equal to 48KHz are played with out any issues. ...
    (microsoft.public.windowsce.embedded)
  • Word clock
    ... Yup, no two or more digital bitstreams will really "sync" unless they are running off the same clock source, or are using an SRC (sampling rate converter) at their input. ... With them, clock issues are less of a concern, since one input can take an AES42 digital mic at 96kHz, another a DAT machine at 44.1, and another with an analog input. ... That is also why the digital camera inputs we have seen have SRC's, they don't lock to external AES clock. ...
    (rec.arts.movies.production.sound)
  • Re: Kernel PLL, microkernel and the simulator.
    ... The data actually used to update the clock can be as old as seven poll ... This is the result of the clock filter and is expected. ... particular, the sampling rate of the NTP loop, even using only every ...
    (comp.protocols.time.ntp)
  • Re: Signal Generator using FPGA and DAC
    ... For example, if you have a single 128-byte sine wave stored in an array, ... at your sampling rate. ... You could even clock this asynchronously to the process that writes the ... DAC, so your DAC is updated at the same rate regardless of your sampling ...
    (comp.lang.vhdl)
  • Re: ADC Converters (General Clocking Question)
    ... clocking out the serial data, and of course, the actual sampling rate ... clock = 11,289,600 MHz just to run it. ... then each machine cycle would be: ...
    (sci.electronics.design)