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

📄 audio.h

📁 用JAVA写的MP3,MP2,MP1解码源代码
💻 H
字号:
/*  * Audio 'LIB' defines */enum { AUDIO_OUT_HEADPHONES,AUDIO_OUT_INTERNAL_SPEAKER,AUDIO_OUT_LINE_OUT };enum { DECODE_TEST, DECODE_AUDIO, DECODE_STDOUT, DECODE_BUFFER };#define AUDIO_FORMAT_MASK	  0x100#define AUDIO_FORMAT_16		  0x100#define AUDIO_FORMAT_8		  0x000#define AUDIO_FORMAT_SIGNED_16    0x110#define AUDIO_FORMAT_UNSIGNED_16  0x120#define AUDIO_FORMAT_UNSIGNED_8   0x1#define AUDIO_FORMAT_SIGNED_8     0x2#define AUDIO_FORMAT_ULAW_8       0x4#define AUDIO_FORMAT_ALAW_8       0x8/* 3% rate tolerance */#define AUDIO_RATE_TOLERANCE	  3#ifdef SGI#include <audio.h>#endifstruct parameter {  int verbose;  int outmode;  int force_rate;  int force_8bit;  int force_mono;  int force_stereo;};extern struct parameter param;struct audio_info_struct{  int fn; /* filenumber */#ifdef SGI  ALconfig config;  ALport port;#endif  long rate;  int gain;  int output;  char *device;  int channels;  int format;  int private1;  void *private2;};struct audio_name {  int  val;  char *name;  char *sname;};extern void audio_capabilities(struct audio_info_struct *);extern void audio_fit_capabilities(struct audio_info_struct *ai,int c,int r);extern char *audio_encoding_name(int format);extern int audio_play_samples(struct audio_info_struct *,unsigned char *,int);extern int audio_open(struct audio_info_struct *);extern int audio_reset_parameters(struct audio_info_struct *);extern int audio_rate_best_match(struct audio_info_struct *ai);extern int audio_set_rate(struct audio_info_struct *);extern int audio_set_format(struct audio_info_struct *);extern int audio_get_formats(struct audio_info_struct *);extern int audio_set_channels(struct audio_info_struct *);extern int audio_write_sample(struct audio_info_struct *,short *,int);extern int audio_close(struct audio_info_struct *);extern void audio_info_struct_init(struct audio_info_struct *);#if defined(SOLARIS) || defined(__NetBSD__)extern void audio_queueflush(struct audio_info_struct *ai);#endif

⌨️ 快捷键说明

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