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

📄 soundutils.h

📁 radius协议源码÷The Radius Stack will connect to a Radius Server. This stack implementation is built upo
💻 H
字号:
//// (c) Yuri Kiryanov, openh323@kiryanov.com// for www.Openh323.org by Equivalence//// Portions: 1998-1999, Be Incorporated//#if ! defined( _SoundUtils_h )#define _SoundUtils_h#include <MediaDefs.h>//	Simple helper functions that come in handy when doing//	buffer calculations.double us_to_s(bigtime_t usecs);bigtime_t s_to_us(double secs);int bytes_per_frame(const media_raw_audio_format & format);int frames_per_buffer(const media_raw_audio_format & format);bigtime_t buffer_duration(const media_raw_audio_format & format);bigtime_t frames_duration(const media_raw_audio_format & format,	int64 num_frames);int64 frames_for_duration(const media_raw_audio_format & format,	bigtime_t duration);int buffers_for_duration(const media_raw_audio_format & format,	bigtime_t duration);//	This is a common hook function interface for//	SoundConsumer and SoundProducer to use.typedef void (*SoundProcessFunc)(void * cookie,	bigtime_t timestamp, void * data, size_t datasize,	const media_raw_audio_format & format);typedef void (*SoundNotifyFunc)(void * cookie,	int32 code, ...);//	These are special codes that we use in the Notify//	function hook.enum {	B_WILL_START = 1,		//	performance_time	B_WILL_STOP,			//	performance_time immediate	B_WILL_SEEK,			//	performance_time media_time	B_WILL_TIMEWARP,		//	real_time performance_time	B_CONNECTED,			//	name (char*)	B_DISCONNECTED,			//	B_FORMAT_CHANGED,		//	media_raw_audio_format*	B_NODE_DIES,			//	node will die!	B_HOOKS_CHANGED,		//		B_OP_TIMED_OUT,			//	timeout that expired -- Consumer only	B_PRODUCER_DATA_STATUS,	//	status performance_time -- Consumer only	B_LATE_NOTICE			//	how_much performance_time -- Producer only};#endif /* _SoundUtils_h */

⌨️ 快捷键说明

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