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

📄 audiobuffer.h

📁 KphoneSI (kpsi) is a SIP (Session Initiation Protocol) user agent for Linux, with which you can in
💻 H
字号:
#ifndef AUDIOBUFFER_H_INCLUDED#define AUDIOBUFFER_H_INCLUDED#include <stdlib.h>/** * Small class for passing around buffers of audio data. Does not * specify a format, so the responsibility is on the programmer to * know what the datatype of the buffer really is. */class AudioBuffer{public:	/**	 * Creates an audio buffer of @param length bytes.	 */	AudioBuffer( size_t length = 4096 );	/**	 * Deletes the audio buffer, freeing the data.	 */	~AudioBuffer( void );	/**	 * Returns a pointer to the audio data.	 */	void *getData( void ) const { return data; }	/**	 * Returns the size of the buffer.	 */	size_t getSize( void ) const { return size; }	/**	 * Resizes the buffer to size newlength. Will only allocate new memory	 * if the size is larger than what has been previously allocated.	 */	void resize( size_t newsize );private:	void *data;	size_t size;	size_t realsize;};#endif // AUDIOBUFFER_H_INCLUDED

⌨️ 快捷键说明

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