[wdmaudiodev] 回复: change SR in msvad

  • From: 英 张 <zds8481@xxxxxxxxxxxx>
  • To: Si Gang <sigangllj@xxxxxxxxx>, wdmaudiodev@xxxxxxxxxxxxx
  • Date: Fri, 21 Dec 2007 15:38:29 +0800 (CST)

Hi,I have changed them as a same value 22050,like this:
  MIN_SAMPLE_RATE 22050 // Min Sample Rate 
  MAX_SAMPLE_RATE 22050 // Max Sample Rate 
  But it doesn't work.
  When I change sample rate in the 'SetFormat', only the header changed, when 
play a wav file, it is very slow of very fast.

Si Gang <sigangllj@xxxxxxxxx> 写道:
  Maybe you can search MIN_SAMPLE_RATE and  MAX_SAMPLE_RATE in your code and 
modify them as follows.
MIN_SAMPLE_RATE 8000 // Min Sample Rate   #define
MAX_SAMPLE_RATE 96000 // Max Sample Rate    
  Best wishes


Other related posts: