[wdmaudiodev] 回复: change SR in msvad

  • From: 英 张 <zds8481@xxxxxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Fri, 21 Dec 2007 16:08:22 +0800 (CST)

Hello,
  Actually, I just want to set a default sample rate, to in accordance with my 
product.What can I do?
   
  Thank you all!

英 张 <zds8481@xxxxxxxxxxxx> 写道:
    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> 写道:
    Hi,
  Maybe you can search MIN_SAMPLE_RATE and  MAX_SAMPLE_RATE in your code and 
modify them as follows.
   
    #define
MIN_SAMPLE_RATE 8000 // Min Sample Rate   #define
MAX_SAMPLE_RATE 96000 // Max Sample Rate    
  Best wishes
  Gaby
   
   


    
---------------------------------
  雅虎邮箱传递新年祝福,个性贺卡送亲朋! 

       
---------------------------------
雅虎邮箱传递新年祝福,个性贺卡送亲朋! 

Other related posts: