⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 newsoundcard.hxx

📁 SIP(Session Initiation Protocol)是由IETF定义
💻 HXX
字号:
#include "VMutex.h"#include "Data.hxx"#include "CircularBuffer.hxx"using Vocal::ADT::CircularBuffer;#ifdef WIN32#include <Mmsystem.h>#include "ASoundCardWin.hxx"#endifenum NewSoundCardFormat{    NewSoundCardUlaw,    NewSoundCardSigned16LE,    NewSoundCardInvalid};class NewSoundCard{    public:        NewSoundCard( const char* deviceName );        int  open ();        void write ( const unsigned char* data, int samples );        int  read ( unsigned char* data, int samples );        int  close();        int  reopen();        NewSoundCardFormat getFormat() const;        int getFd() const;    private:        int myFD;        mutable VMutex deviceMutex;        Data myDeviceName;        NewSoundCardFormat myFormat;#ifdef WIN32        //AND:Win32 specific members (handles, etc...)        ASoundCardWin	m_aSoundCardWinIn;        ASoundCardWin	m_aSoundCardWinOut;#endif        CircularBuffer<unsigned char> myReadBuffer;        CircularBuffer<unsigned char> myWriteBuffer;};/* Local Variables: *//* c-file-style: "stroustrup" *//* indent-tabs-mode: nil *//* c-file-offsets: ((access-label . -) (inclass . ++)) *//* c-basic-offset: 4 *//* End: */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -