1. <li id="3se62"></li>
      <th id="3se62"></th>

      <progress id="3se62"></progress>
         你好,歡迎來到電腦編程技巧與維護雜志社! 雜志社簡介廣告服務讀者反饋編程社區  
        合訂本訂閱
         
         
        您的位置:雜志經典 / 編程語言
        多路音頻實時采樣壓縮存盤DLL的實現和使用(五)
         

        3.3音頻解壓縮與回放  

        音頻解壓縮部份也在winio.dll封裝,在VB程序中調用,解壓部份用了話音壓縮解碼庫G729a.lib中的函數va_g729a_init_decoder()。

        bool _stdcall talk729decoderinit ()//初始化解碼器

        {

        va_g729a_init_decoder();

        return  TRUE;

        }

        bool _stdcall DecodeAudioData( BYTE* pin,int len,short* pout,int* lenr)

        //解壓音頻數據, 一次解壓260字節壓縮數據,

        {

         va_g729a_decoder(pin, pout,0);

         va_g729a_decoder(pin+10, pout+80,0);

         va_g729a_decoder(pin+20, pout+160,0);

         va_g729a_decoder(pin+30, pout+240,0);

          

         va_g729a_decoder(pin+250, pout+1820,0);

        return  TRUE;

        }

        解壓縮函數void va_g729a_decoder(unsigned char *bitstream, short *synth_short, int bfi),每次解壓10個字節 數據,變成8016 位 數據,是壓縮的反過程。

         

        3.4 封裝在VB6.0 調用的函數

        bool _stdcall talk729decoderinit ()//初始化解壓器

        bool _stdcall DecodeAudioData( BYTE* pin,int len,short* pout,int* lenr)//解壓音頻數據, 一次解壓260字節壓縮數據。

         

        bool _stdcall sendhwndtlp(HWND apitexthwnd,unsigned char* apilpmax,HWND apistorekhwnd,short* apilpalldata1,short* apilpalldata2,unsigned char* apilpcodedata)//DLL傳送句柄與數據地址指針
          推薦精品文章

        ·2023年7月目錄
        ·2023年6月目錄 
        ·2023年5月目錄
        ·2023年4月目錄 
        ·2023年3月目錄 
        ·2023年2月目錄 
        ·2023年1月目錄 
        ·2022年12月目錄 
        ·2022年11月目錄 
        ·2022年10月目錄 
        ·2022年9月目錄 
        ·2022年8月目錄 
        ·2022年7月目錄 
        ·2022年6月目錄 

          聯系方式
        TEL:010-82561037
        Fax: 010-82561614
        QQ: 100164630
        Mail:gaojian@comprg.com.cn

          友情鏈接
         
        Copyright 2001-2010, www.1wcdp.top, All Rights Reserved
        京ICP備14022230號-1,電話/傳真:010-82561037 82561614 ,Mail:gaojian@comprg.com.cn
        地址:北京市海淀區遠大路20號寶藍大廈E座704,郵編:100089 
        1. <li id="3se62"></li>
          <th id="3se62"></th>

          <progress id="3se62"></progress>
            操美女小骚逼