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

📄 audio.h

📁 speech signal process tools
💻 H
字号:
/* * This material contains unpublished, proprietary software of  * Entropic Research Laboratory, Inc. Any reproduction, distribution,  * or publication of this work must be authorized in writing by Entropic  * Research Laboratory, Inc., and must bear the notice:  * *    "Copyright (c) 1995 Entropic Research Laboratory, Inc.  *                   All rights reserved." * * The copyright notice above does not evidence any actual or intended  * publication of this source code.      * * @(#)audio.h	1.5 10/23/96 ERL * * Written by:  Derek Lin * Checked by: * Revised by:  Alan Parker * * Brief description: * */#ifndef audio_H#define audio_H#ifdef __cplusplusextern "C" {#endif#include <esps/esps.h>extern char audio_error_msg[];voidDoDC ARGS((short int *buffer,	   int nsamps, int chans, short int *dc));/* nsamps and chans are specified as short in pre-ANSI style * in audio_.c; therefore they are passed as int. */voidGetBuffMaxMin ARGS((register short int *buffer,		    int samples, int chans,		    double *smax, double *smin));/* samples and chans are specified as short in pre-ANSI style * in audio_.c; therefore they are passed as int. */intPortIsAvailable ARGS((void));voidScaleData ARGS((short int *indata, short int *outdata, register int nsamps,		register int channel, int gflag1, register int shift,		register double gain));/* gain is specified as float in pre-ANSI style in audio_.c; * therefore it is passed as double. */int *AudioGetRates ARGS((void));intAudioMaxChannels ARGS((void));intInitAudioRecord ARGS((double srate, int channel, int nSampsPerChan));intStartAudioRecord ARGS((void));intCloseAudioRecord ARGS((void));intPauseAudioRecord ARGS((void));intContAudioRecord ARGS((void));intRecordAudio ARGS((short int *inputBuffer));intSetAudioInputType ARGS((char *src));intSetAudioInputGain ARGS((int gainL, int gainR));intInitAudioPlay ARGS((double srate, int channel, int nSampsPerChan));intCanWriteAudio ARGS((void));intStartAudioPlay ARGS((void));intCloseAudioPlay ARGS((int hold_port));intPauseAudioPlay ARGS((void));intContAudioPlay ARGS((void));intPlayAudio ARGS((short int *buffer, int nSamps));intGetPlayFilled ARGS((void));intPlayAudioDrain ARGS((void));intSetAudioOutputType ARGS((char *out));intSetAudioOutputGain ARGS((int gainL, int gainR));int closest_srate ARGS((double req_rate, int *rates));voidE_usleep ARGS((unsigned int usec));#ifdef __cplusplus}#endif#endif /* audio_H */

⌨️ 快捷键说明

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