如上,用Wave系列函数可以播放倒设备上,但是怎么存在文件里呢?

解决方案 »

  1.   

    the Windows Media SDK from Microsoft,估计要用到!http://www.codeproject.com/useritems/dshowencoder.asp?target=mp3这个把wav->mp3还有两者的格式,包装类:Converting Wav file to MP3 or other format using DirectShow
    By Guitool Simple class to convert stereo 44 kHz, 16 bit wav file to another format, including MP3. The class show how to use DirectShow API for audio conversion.  
      

  2.   

    大意是先搞清wav和mp3两者的格式,然后就按文件的方式写入!http://www.codeproject.com里输入mp3还有一些可以看看
      

  3.   

    一些讨论组的:http://www.extremetech.com/article2/0,3973,704867,00.asp?kc=ETLK10209KTX1K0100361Top Tip: Convert MP3 to WAV file? 
      
    Question from alinski : 
    "I am new to the different audio file types and have a question. Is there a software that converts mp3 to wav or media player? If yes, which one is recommended?" Answer from nman64 : 
    "If you're wanting to burn a normal audio CD, like you would buy at the store, you just need writing software that supports MP3. You'll have a hard time finding writing software that doesn't support MP3. Just make sure you're creating an audio CD, not a data CD, and the software will handle the conversions automatically. "
       
     
    mp3guy27: There is a ton of software out there to convert MP3 files to a red book CD which can be played in a CD player.  
     
     
      

  4.   

    现在的问题是:
    怎么改变wav文件的采样率生成新的wav,要求直接在内存中操作,不在设备上播放而进行重新采样?
      

  5.   

    采样率包含在wav文件的内部,改变采样率可能就是把数据还原成波形数据模型,然后对波形进行每隔几个值再保留一个值。前提是你对wav文件的格式要有清楚的了解,如果想效果好的话,可以根据人的听觉系统的特点,进行不均匀重新采样,可在同样采样率的情况下获得更好的效果。当然采样率只能越改越小。