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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? fifosamplebuffer.h

?? Audacity是一款用於錄音和編輯聲音的、免費的開放源碼軟體。它可以執行於Mac OS X、Microsoft Windows、GNU/Linux和其它作業系統
?? H
字號:
/*****************************************************************************
 *
 * A buffer class for temporarily storaging sound samples, operates as a 
 * first-in-first-out pipe.
 *
 * Samples are added to the end of the sample buffer with the 'putSamples' 
 * function, and are received from the beginning of the buffer by calling
 * the 'receiveSamples' function. The class automatically removes the 
 * outputted samples from the buffer as well as grows the storage size 
 * whenever necessary.
 *
 * Author        : Copyright (c) Olli Parviainen
 * Author e-mail : oparviai @ iki.fi
 * File created  : 13-Jan-2002
 *
 * Last changed  : $Date: 2004/03/14 15:51:41 $
 * File revision : $Revision: 1.1.1.1 $
 *
 * $Id: FIFOSampleBuffer.h,v 1.1.1.1 2004/03/14 15:51:41 mbrubeck Exp $
 *
 * License :
 * 
 *  SoundTouch sound processing library
 *  Copyright (c) Olli Parviainen
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License as published by the Free Software Foundation; either
 *  version 2.1 of the License, or (at your option) any later version.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this library; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 *****************************************************************************/

#ifndef FIFOSampleBuffer_H
#define FIFOSampleBuffer_H

#include "FIFOSamplePipe.h"

/// Sample buffer working in FIFO (first-in-first-out) principle. The class takes
/// care of storage size adjustment and data moving during input/output operations.
///
/// Notice that in case of stereo audio, one sample is considered to consist of 
/// both channel data.
class FIFOSampleBuffer : public FIFOSamplePipe
{
private:
    /// Sample buffer.
    soundtouch::SAMPLETYPE *buffer;

    // Raw unaligned buffer memory. 'buffer' is made aligned by pointing it to first
    // 16-byte aligned location of this buffer
    soundtouch::SAMPLETYPE *bufferUnaligned;

    /// Sample buffer size in bytes
    uint sizeInBytes;

    /// How many samples are currently in buffer.
    uint samplesInBuffer;

    /// Channels, 1=mono, 2=stereo.
    uint channels;

    /// Current position pointer to the buffer. This pointer is increased when samples are 
    /// removed from the pipe so that it's necessary to actually rewind buffer (move data)
    /// only new data when is put to the pipe.
    uint bufferPos;

    /// Rewind the buffer by moving data from position pointed by 'bufferPos' to real 
    /// beginning of the buffer.
    void rewind();

    /// Ensures that the buffer has capacity for at least this many samples.
    void ensureCapacity(const uint capacityRequirement);

    /// Returns current capacity.
    uint getCapacity() const;
 
public:

    /// Constructor
    FIFOSampleBuffer(uint numChannels = 2     ///< Number of channels, 1=mono, 2=stereo.
                                              ///< Default is stereo.
                     );

    /// destructor
    ~FIFOSampleBuffer();

    /// Returns a pointer to the beginning of the output samples. 
    /// This function is provided for accessing the output samples directly. 
    /// Please be careful for not to corrupt the book-keeping!
    ///
    /// When using this function to output samples, also remember to 'remove' the
    /// outputted samples from the buffer by calling the 
    /// 'receiveSamples(numSamples)' function
    virtual soundtouch::SAMPLETYPE *ptrBegin() const;

    /// Returns a pointer to the end of the used part of the sample buffer (i.e. 
    /// where the new samples are to be inserted). This function may be used for 
    /// inserting new samples into the sample buffer directly. Please be careful
    /// not corrupt the book-keeping!
    ///
    /// When using this function as means for inserting new samples, also remember 
    /// to increase the sample count afterwards, by calling  the 
    /// 'putSamples(numSamples)' function.
    soundtouch::SAMPLETYPE *ptrEnd(
                uint slackCapacity   ///< How much free capacity (in samples) there _at least_ 
                                     ///< should be so that the caller can succesfully insert the 
                                     ///< desired samples to the buffer. If necessary, the function 
                                     ///< grows the buffer size to comply with this requirement.
                );

    /// Adds 'numSamples' pcs of samples from the 'samples' memory position to
    /// the sample buffer.
    virtual void putSamples(const soundtouch::SAMPLETYPE *samples,  ///< Pointer to samples.
                            uint numSamples                         ///< Number of samples to insert.
                            );

    /// Adjusts the book-keeping to increase number of samples in the buffer without 
    /// copying any actual samples.
    ///
    /// This function is used to update the number of samples in the sample buffer
    /// when accessing the buffer directly with 'ptrEnd' function. Please be 
    /// careful though!
    virtual void putSamples(uint numSamples   ///< Number of samples been inserted.
                            );

    /// Output samples from beginning of the sample buffer. Copies requested samples to 
    /// output buffer and removes them from the sample buffer. If there are less than 
    /// 'numsample' samples in the buffer, returns all that available.
    ///
    /// \return Number of samples returned.
    virtual uint receiveSamples(soundtouch::SAMPLETYPE *output, ///< Buffer where to copy output samples.
                                uint maxSamples                 ///< How many samples to receive at max.
                                );

    /// Adjusts book-keeping so that given number of samples are removed from beginning of the 
    /// sample buffer without copying them anywhere. 
    ///
    /// Used to reduce the number of samples in the buffer when accessing the sample buffer directly
    /// with 'ptrBegin' function.
    virtual uint receiveSamples(uint maxSamples   ///< Remove this many samples from the beginning of pipe.
                                );

    /// Returns number of samples currently available.
    virtual uint numSamples() const;

    /// Sets number of channels, 1 = mono, 2 = stereo.
    void setChannels(uint numChannels);

    /// Returns nonzero if there aren't any samples available for outputting.
    virtual int isEmpty() const;

    /// Clears all the samples.
    virtual void clear();
};

#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美做爰猛烈大尺度电影无法无天| 国产女人18毛片水真多成人如厕| 久久亚洲精华国产精华液| 中文字幕乱码亚洲精品一区 | 日韩欧美在线综合网| 国产欧美日韩久久| 视频一区二区三区入口| 成a人片亚洲日本久久| 欧美一级二级三级乱码| 一区二区三区免费网站| 国产福利一区二区| 欧美一区二区在线免费播放| 亚洲男同1069视频| 国产精品一区二区无线| 欧美大片日本大片免费观看| 亚洲第一成人在线| 色88888久久久久久影院按摩| 国产欧美视频一区二区| 韩国一区二区三区| 欧美成人精品福利| 日产精品久久久久久久性色| 欧美午夜精品久久久久久孕妇| 亚洲视频一区二区在线| 成人一区二区三区在线观看| 久久久另类综合| 国产在线播放一区| 久久精品视频在线免费观看| 国产综合色产在线精品| 久久综合九色综合97婷婷女人| 奇米精品一区二区三区在线观看 | 欧美怡红院视频| 亚洲综合图片区| 色婷婷综合久久久中文一区二区| 中文字幕一区二区三区在线播放 | 日本韩国欧美一区二区三区| 综合av第一页| 在线免费不卡视频| 一区二区三区视频在线看| 一本久久精品一区二区| 洋洋av久久久久久久一区| 欧美伊人精品成人久久综合97| 亚洲综合成人在线| 欧美日韩精品久久久| 日韩不卡在线观看日韩不卡视频| 欧美一二区视频| 国产精品一区不卡| 国产精品国产三级国产普通话蜜臀| 99精品视频一区| 午夜视频在线观看一区二区 | 欧美丰满嫩嫩电影| 美女视频黄 久久| 久久精品人人爽人人爽| 成人网在线播放| 亚洲线精品一区二区三区 | 在线视频你懂得一区| 午夜视频久久久久久| 日韩欧美中文一区二区| 国产揄拍国内精品对白| 亚洲女厕所小便bbb| 欧美一区二区三区在| 国产超碰在线一区| 亚洲妇熟xx妇色黄| 久久久www成人免费无遮挡大片| 91蜜桃视频在线| 蜜桃视频一区二区三区在线观看 | 一区二区三区欧美在线观看| 777午夜精品免费视频| 国产精品1区2区| 亚洲高清免费在线| 久久精品一区二区三区不卡牛牛| 97精品国产97久久久久久久久久久久 | 成人激情午夜影院| 五月天丁香久久| 中文字幕乱码一区二区免费| 在线电影院国产精品| 国产成人av资源| 午夜精品久久久久久久| 久久久久88色偷偷免费| 欧美日韩精品一区二区天天拍小说| 国内精品在线播放| 亚洲自拍偷拍九九九| 国产清纯白嫩初高生在线观看91 | 美女www一区二区| 樱花影视一区二区| 久久女同互慰一区二区三区| 欧美三级中文字幕| 成人激情图片网| 国产精品系列在线播放| 日本欧美大码aⅴ在线播放| 成人欧美一区二区三区小说| 精品国产一区二区三区忘忧草| 欧美午夜视频网站| 99视频精品在线| 国产精品1区2区3区在线观看| 麻豆免费看一区二区三区| 亚洲国产精品一区二区久久恐怖片| 国产精品污污网站在线观看| 精品国产伦一区二区三区免费| 欧美精品日日鲁夜夜添| 色婷婷综合激情| 91视频在线观看| 不卡大黄网站免费看| 成人网页在线观看| 国产91在线看| 国产精品一区在线观看乱码| 国产一区二区影院| 久久国产麻豆精品| 奇米一区二区三区av| 亚洲成人黄色小说| 亚洲一二三级电影| 亚洲线精品一区二区三区八戒| 亚洲精品中文在线影院| ●精品国产综合乱码久久久久 | 亚洲制服丝袜在线| 亚洲激情自拍偷拍| 亚洲黄色免费网站| 亚洲二区在线视频| 日韩精品久久久久久| 天堂精品中文字幕在线| 青青草一区二区三区| 日韩高清中文字幕一区| 无码av中文一区二区三区桃花岛| 视频在线观看91| 久久99久久久久| 国模大尺度一区二区三区| 激情文学综合网| 成人动漫av在线| 色婷婷亚洲精品| 欧美日本在线视频| 欧美不卡视频一区| 亚洲国产成人一区二区三区| 亚洲精品欧美专区| 五月婷婷久久综合| 激情亚洲综合在线| 久久成人综合网| 成人app在线观看| 欧美日韩专区在线| 日韩一区二区视频| 中文字幕乱码久久午夜不卡 | 美女网站色91| 国产成人精品亚洲777人妖| 成人免费视频视频| 在线免费不卡视频| 精品国产网站在线观看| 国产精品毛片高清在线完整版| 亚洲激情第一区| 激情图片小说一区| 一本一道久久a久久精品| 欧美一区二区三区视频| 中文字幕乱码亚洲精品一区| 午夜精品视频一区| 激情五月播播久久久精品| 91丨porny丨国产| 日韩免费在线观看| 亚洲男人的天堂av| 蜜臀精品久久久久久蜜臀| 不卡视频免费播放| 日韩三级视频在线观看| 国产午夜精品一区二区三区嫩草 | 欧美精品久久久久久久多人混战 | 日韩精品一区二区三区在线| 亚洲国产精品二十页| 日本不卡高清视频| 一本大道久久a久久综合| 亚洲精品在线观看网站| 一区二区三区在线视频免费 | 国产欧美va欧美不卡在线| 亚洲成av人综合在线观看| 成人精品国产免费网站| 欧美一区二区精品久久911| 亚洲视频一区二区免费在线观看| 男女性色大片免费观看一区二区 | 成人aaaa免费全部观看| 日韩欧美激情在线| 亚洲综合丁香婷婷六月香| 成人av影院在线| 精品国产91洋老外米糕| 丝袜美腿亚洲色图| 91福利国产精品| 亚洲欧美另类久久久精品 | 欧美精品一二三区| 亚洲男人都懂的| av不卡在线播放| 国产欧美精品一区二区色综合朱莉| 免费高清不卡av| 91精品国产入口在线| 亚洲第一主播视频| 在线免费亚洲电影| 一区二区欧美国产| 在线观看视频一区二区| 最新国产精品久久精品| 不卡一卡二卡三乱码免费网站| 国产片一区二区| 国产91丝袜在线观看| 欧美精品一区二区在线播放| 激情欧美日韩一区二区| 精品国产髙清在线看国产毛片| 麻豆精品视频在线| 精品国产乱码久久久久久牛牛| 免播放器亚洲一区|