亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? mixengine.h

?? linux下的一款播放器
?? H
字號:
/* ***** BEGIN LICENSE BLOCK ***** * Source last modified: $Id: mixengine.h,v 1.8.16.2 2004/07/09 02:08:04 hubbe Exp $ *  * Portions Copyright (c) 1995-2004 RealNetworks, Inc. All Rights Reserved. *  * The contents of this file, and the files included with this file, * are subject to the current version of the RealNetworks Public * Source License (the "RPSL") available at * http://www.helixcommunity.org/content/rpsl unless you have licensed * the file under the current version of the RealNetworks Community * Source License (the "RCSL") available at * http://www.helixcommunity.org/content/rcsl, in which case the RCSL * will apply. You may also obtain the license terms directly from * RealNetworks.  You may not use this file except in compliance with * the RPSL or, if you have a valid RCSL with RealNetworks applicable * to this file, the RCSL.  Please see the applicable RPSL or RCSL for * the rights, obligations and limitations governing use of the * contents of the file. *  * Alternatively, the contents of this file may be used under the * terms of the GNU General Public License Version 2 or later (the * "GPL") in which case the provisions of the GPL are applicable * instead of those above. If you wish to allow use of your version of * this file only under the terms of the GPL, and not to allow others * to use your version of this file under the terms of either the RPSL * or RCSL, indicate your decision by deleting the provisions above * and replace them with the notice and other provisions required by * the GPL. If you do not delete the provisions above, a recipient may * use your version of this file under the terms of any one of the * RPSL, the RCSL or the GPL. *  * This file is part of the Helix DNA Technology. RealNetworks is the * developer of the Original Code and owns the copyrights in the * portions it created. *  * This file, and the files included with this file, is distributed * and made available on an 'AS IS' basis, WITHOUT WARRANTY OF ANY * KIND, EITHER EXPRESS OR IMPLIED, AND REALNETWORKS HEREBY DISCLAIMS * ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET * ENJOYMENT OR NON-INFRINGEMENT. *  * Technology Compatibility Kit Test Suite(s) Location: *    http://www.helixcommunity.org/content/tck *  * Contributor(s): *  * ***** END LICENSE BLOCK ***** */#ifndef _AFMTCVT_H_#define _AFMTCVT_H_#include "hxtypes.h"#include "hxresult.h"#include "hlxclib/string.h" // memcpy/memset// define the "native audio data type"// on memory- and resource-constrained devices, use 16-bit processing#if defined(_PALMOS) || defined(_SYMBIAN)typedef INT16 tAudioSample ;#if defined(HELIX_FEATURE_GAINTOOL) || defined(HELIX_FEATURE_CROSSFADE)#error "gain tool and crossfader do not work on 16-bit data types yet"#endif#else // all other platforms use 32-bit processingtypedef INT32 tAudioSample ;#endif#define NBITS_PER_AUDIOSAMPLE (sizeof(tAudioSample)<<3)// derive your class from this. This will be used as a callback to convert samples from// the renderer input queues into the HXAudioSvcMixEngine source bufferclass CAudioSvcSampleConverter{public:    // As a client of the MixEngine, you need to implement this function. Its    // purpose is to fill a mixengine-owned buffer with samples representing the    // time between llStartTime and llStartTime + nSamples.    // If you have data for all the buffer, convert it all and return 1.    // If you have partial data, convert what you have, and silence out the rest. Return 1.    // If you have no data at all, just return 0. You may silence the buffer, but don't have to.    virtual BOOL ConvertIntoBuffer(tAudioSample* buffer, UINT32 nSamples, INT64 llStartTimeInSamples) = 0;protected:    // using these utility functions.    static void cvt8 (const void *in, tAudioSample* out, int nSamples)    {        for (int i=0; i < nSamples; i++) out[i] = (((const UINT8*)in)[i] - 128) << (NBITS_PER_AUDIOSAMPLE-8) ;    }    static void cvt16(const void *in, tAudioSample* out, int nSamples)    {        for (int i=0; i < nSamples; i++) out[i] = ((const INT16*)in)[i] << (NBITS_PER_AUDIOSAMPLE-16) ;    }    static void cvt32(const void *in, tAudioSample* out, int nSamples)    {        if (NBITS_PER_AUDIOSAMPLE == 32)            memcpy(out, in, nSamples * sizeof(*out));        else            for (int i=0; i < nSamples; i++) out[i] = (INT16)(((const INT32*)in)[i] >> (NBITS_PER_AUDIOSAMPLE-16)) ;    }    static void silence(tAudioSample* out, int nSamples)    {        memset(out, 0, nSamples * sizeof(*out)) ;    }} ;// forward and other definitionsstruct COEFF ;class RAExactResampler ;typedef struct GAIN_STATE GAIN_STATE ;typedef struct XFADER_STATE XFADER_STATE ;typedef struct LIMSTATE LIMSTATE ;typedef struct UpMixMachine  tUpMixMachine ;class HXAudioSvcMixEngine{public:    HXAudioSvcMixEngine() ;    ~HXAudioSvcMixEngine() ;    // set the parameters. You can call this (and change the parameters) in operation,    // but it will reset the time line.    HX_RESULT Init(INT32 sampleRateIn, INT32 sampleRateOut, INT32 nChannelsIn, INT32 nChannelsOut) ;    // set the output bytes per sample. Set it to 2 for 16-bit output, 4 for 32-bit    // output. Note that this does not influence the datatype of internal computations.    HX_RESULT SetOutputBytesPerSample(UINT32 bps) ;    // Set the sample converter. The mix engine uses the sample converter to read    // new samples.    HX_RESULT SetSampleConverter(CAudioSvcSampleConverter *pCvt) ;    // set the volume/gain. This is in tenth of a dB. 0 == unity gain, 6dB = twice as loud, -6dB = half as loud    // set bImmediate if you want the gain change to be immediate    // (if you don't know what this means, then you don't want it to be immediate)    HX_RESULT SetVolume(INT32 tenthOfDB, BOOL bImmediate = FALSE) ;    // use this to convert from "Helix Volume Scale" to tenth of dB.    static INT32 HXVolume2TenthOfDB(INT32 vol) ;    enum    {        VOLUME_SILENT = -200 * 10 // -200 dB is as good as silent.    } ;    // set the downmix matrix. There are default downmix matrices, so you don't need to     // call this function. In fact, it is not yet spec'ed out.    // SetDownmixMatrix() ;    // This will issue a series of Convert::ConvertIntoBuffer() callbacks,    // and will return with a full buffer of resampled/channel converted/mixed data.    HX_RESULT MixIntoBuffer(        void* pPlayerBuf,        UINT32 ulBufSizeInBytes,        BOOL&    bIsMixBufferDirty    ) ;    // guess what.    enum eCrossfadeDirection    {      FADE_IN  = 0,      FADE_OUT = 1    } ;    // This will register a cross fade. The cross fade will be unregistered only    // when ResetTimeline() is called or when the fade is done.    // the time stamps are in units of samples of the output signal.    HX_RESULT SetCrossFade(        enum eCrossfadeDirection inOut, // 0 for fade in, 1 for fade out.        INT64 llStarttimeInSamples,        INT64 llEndtimeInSamples    ) ;    // reset the time line. Call this whenever the next call to MixIntoBuffer()    // will have a time stamp that is non-contiguous with the previous mix.    // This should only be the case after Seek/Resume    HX_RESULT ResetTimeLineInMillis(INT64 millis) ;    // the time of the next mix, in ms.    INT64 GetNextMixTimeMillis(void) const;    // ask the mixer which range of input samples it will request in a mix operation    // of size nBytesToMix.    void GetMixRange(UINT32 nBytesToMix, INT64& llStart, INT64& llEnd) const;protected:    // the sample converter we call back into    CAudioSvcSampleConverter *m_pCvt ;private:    // we process audio in batches, so that we don't have to dynamically    // allocate memory and can work inside of the cache. This is the number    // of samples we process at any one time.    enum    {        BATCHSIZE = 2048    } ;    // helper functions    void releaseResources() ;    HX_RESULT SetupResamplerAndBuffers(void) ;    HX_RESULT SetupUpDownmix(void) ;    // timekeeping & other variables    INT64 m_llTimestamp_1, m_llTimestamp_3 ; // time on input & output    UINT32 m_ulSampleRate_1_2, m_ulSampleRate_3_4 ;    UINT32 m_nChannels_1, m_nChannels_2_3, m_nChannels_4 ;    UINT32 m_ulChunkSize_1,m_ulChunkSize_3 ;    UINT32 m_ulBytesPerSample ; // bytes per sample on the output    UINT32 m_nOutputSamplesLeft_3 ;    UINT32 m_ulBufferSize_3 ;    tAudioSample *m_pBuffer_1, *m_pBuffer_3 ; // buffer pre- and post resampler    // resampler    RAExactResampler *m_pResampler ;    UINT32 m_ulResamplerPhase ;    // XFader    INT64 m_llFadeStart ;    UINT32 m_ulXFadeSamples ;    BOOL m_bPastXFade ; // set to TRUE if we have passed the X-Fade point.    enum eCrossfadeDirection m_eCrossFadeDirection ;    XFADER_STATE *m_pXFader ;    // gain tool    GAIN_STATE *m_pGaintool ;    // limiter    LIMSTATE *m_pLimiter ;    // downmix/upmix    enum { HEADROOM = 3 } ;    int m_slev, m_clev ;    UINT32 upmix(const tAudioSample *pIn, INT32 *pOut, const tUpMixMachine *pUpmixMachine, int nSamples, BOOL isDirty) ;    UINT32 upmix(const tAudioSample *pIn, INT16 *pOut, const tUpMixMachine *pUpmixMachine, int nSamples, BOOL isDirty) ;    const tUpMixMachine *m_upmixMachine ; // how to "up"-mix the audio    void downmix2_1(tAudioSample *pBuffer, int nSamples) ;    void downmix5_1(tAudioSample *pBuffer, int nSamples) ;    void downmix4_2_stereo(tAudioSample *pBuffer, int nSamples) ;    void downmix4_2_matrix(tAudioSample *pBuffer, int nSamples) ;    void downmix5_2_stereo(tAudioSample *pBuffer, int nSamples) ;    void downmix5_2_matrix(tAudioSample *pBuffer, int nSamples) ;    void downmix6_1(tAudioSample *pBuffer, int nSamples) ;    void downmix6_2_stereo(tAudioSample *pBuffer, int nSamples) ;    void downmix6_2_matrix(tAudioSample *pBuffer, int nSamples) ;    void downmix6_5(tAudioSample *pBuffer, int nSamples) ;    typedef void (HXAudioSvcMixEngine::*tDownmixfunc)(tAudioSample *pBuffer, int nSamples) ;    tDownmixfunc m_pfDownmix ; // function to downmix the audio} ;#endif /* _AFMTCVT_H_ */

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩黄色一级片| 精品成人一区二区三区四区| 精品国产污污免费网站入口| 国产成人精品免费在线| 久久久久久久久久久电影| 久久99久久久欧美国产| 欧美一级片免费看| 日韩av在线免费观看不卡| 欧美一级高清大全免费观看| 日韩专区欧美专区| ㊣最新国产の精品bt伙计久久| 不卡的av电影在线观看| 亚洲视频一区二区在线| 欧美日韩一级二级| 三级不卡在线观看| 亚洲视频一区二区在线| 久久精品视频在线看| 91视频免费看| 五月天久久比比资源色| 日韩免费观看高清完整版在线观看| 久久国产精品免费| 丝袜亚洲另类欧美综合| 一区二区三区欧美日| 欧美日韩综合在线| 色综合网色综合| 首页国产丝袜综合| 一区二区三区小说| 亚洲女子a中天字幕| 日韩欧美色综合网站| 欧美日韩一区二区三区在线| 色综合天天综合色综合av| 成人免费视频网站在线观看| 图片区小说区国产精品视频| 亚洲蜜臀av乱码久久精品| 中文字幕一区不卡| 成人免费在线视频观看| 国产精品狼人久久影院观看方式| 欧美色视频在线| 欧美日韩激情一区二区三区| 极品美女销魂一区二区三区| 亚洲同性gay激情无套| 国产精品成人免费在线| 国产精品情趣视频| 欧美成人精品二区三区99精品| 91在线视频免费观看| 免费人成网站在线观看欧美高清| 亚洲国产精品高清| 日韩欧美黄色影院| 欧美大片日本大片免费观看| 欧美大片在线观看一区二区| 久久蜜桃av一区精品变态类天堂 | 精品久久久久久久久久久久久久久| 欧美日韩一级二级| 制服丝袜成人动漫| 99久久99久久精品国产片果冻| 成人av网址在线观看| 99精品视频在线观看| 色婷婷综合久久久中文字幕| 国精产品一区一区三区mba视频 | 在线精品视频免费播放| 国产福利一区在线观看| 大胆亚洲人体视频| 91免费国产在线观看| 欧美性色黄大片手机版| av成人老司机| 国产福利91精品一区二区三区| 风间由美一区二区三区在线观看 | 久久网站热最新地址| 91精品国产手机| 久久久久久久久一| 亚洲日本va在线观看| 亚洲综合一二区| 综合在线观看色| 性做久久久久久免费观看欧美| 亚洲精品欧美在线| 亚洲欧美视频在线观看| 视频一区免费在线观看| 国产精品一区二区无线| 激情图区综合网| 91在线云播放| 日韩欧美国产精品一区| 中文字幕亚洲一区二区av在线| 亚洲高清在线精品| 亚洲成人资源网| 国产精品一区二区久久不卡| 91免费国产在线| 精品美女一区二区三区| 亚洲欧美日韩中文播放| 捆绑调教美女网站视频一区| www.色精品| 欧美一区二区三区公司| 国产精品久久久久aaaa樱花 | 最近日韩中文字幕| 男女视频一区二区| 91日韩一区二区三区| 日韩视频在线一区二区| 亚洲精品乱码久久久久久久久 | 亚洲欧美视频在线观看| 极品美女销魂一区二区三区免费| 91免费观看国产| 久久久亚洲欧洲日产国码αv| 亚洲卡通欧美制服中文| 国产伦精品一区二区三区免费| 狠狠色丁香婷婷综合久久片| 欧美在线播放高清精品| 久久精品视频免费| 日本视频一区二区| 色噜噜偷拍精品综合在线| 精品视频在线看| 亚洲同性同志一二三专区| 精品一区二区在线免费观看| 欧美久久免费观看| 精品久久久久久无| 丝袜美腿成人在线| 在线免费不卡电影| 国产精品国产自产拍在线| 国产一区欧美一区| 91麻豆精品国产自产在线观看一区| 国产精品久久久久桃色tv| 韩国三级中文字幕hd久久精品| 欧美日韩亚洲综合一区二区三区| 国产精品久久久久久久久搜平片 | 欧美精品在线视频| 亚洲色图欧美激情| jvid福利写真一区二区三区| 精品国精品国产| 美女诱惑一区二区| 成人动漫视频在线| 欧美韩日一区二区三区四区| 国内不卡的二区三区中文字幕 | 久久综合九色综合欧美亚洲| 日本不卡不码高清免费观看| 欧美色偷偷大香| 午夜影院在线观看欧美| 91国偷自产一区二区开放时间| 综合激情成人伊人| 97se狠狠狠综合亚洲狠狠| 国产精品国产三级国产普通话99| 国产91在线观看| 久久久国产精品不卡| 欧美日韩在线免费视频| 亚洲高清在线视频| 欧美日韩国产一级| 日本亚洲一区二区| 日韩美女在线视频| 国产一区二区三区黄视频 | 在线观看日韩高清av| 一区二区三区四区蜜桃| 欧美最新大片在线看| 亚洲午夜久久久久久久久久久 | 在线日韩一区二区| 亚洲超碰精品一区二区| 在线成人av网站| 久久99精品一区二区三区三区| 精品第一国产综合精品aⅴ| 高清国产一区二区| 亚洲欧美区自拍先锋| 欧美视频中文一区二区三区在线观看| 亚洲成在线观看| 精品国产免费一区二区三区香蕉| 国产精品18久久久久久久网站| 亚洲国产岛国毛片在线| 一本大道av伊人久久综合| 午夜视频久久久久久| 精品国产网站在线观看| 99视频国产精品| 爽好多水快深点欧美视频| 亚洲精品一区二区精华| 99久久久国产精品免费蜜臀| 亚洲自拍欧美精品| 欧美大片在线观看一区| 成人高清免费在线播放| 午夜久久久久久久久| 久久久久久久久久美女| 91久久线看在观草草青青| 日本亚洲欧美天堂免费| 国产精品欧美极品| 欧美日韩极品在线观看一区| 国产精品99久久久久久有的能看| 亚洲精品第1页| 精品国产百合女同互慰| 色综合久久99| 久久99久久99| 亚洲线精品一区二区三区八戒| 日韩精品一区二区三区四区| 99久久久免费精品国产一区二区| 青椒成人免费视频| 日韩毛片一二三区| 欧美xxxxx牲另类人与| 色婷婷综合中文久久一本| 精品一区二区三区在线播放| 一区二区在线观看视频在线观看| 欧美成人三级电影在线| 欧美在线啊v一区| 欧美疯狂做受xxxx富婆| 成人小视频在线| 老司机免费视频一区二区| 一卡二卡三卡日韩欧美| 国产欧美一区二区精品婷婷 | 看片网站欧美日韩|