?? dec_speex.h
字號:
/* -*- linux-c -*- Copyright (C) 2005 Tom Szilagyi This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. $Id: dec_speex.h,v 1.5 2006/08/11 08:04:10 tszilagyi Exp $*/#ifndef _DEC_SPEEX_H#define _DEC_SPEEX_H#ifdef HAVE_SPEEX#include <oggz/oggz.h>#include <speex/speex.h>#include <speex/speex_header.h>#endif /* HAVE_SPEEX */#include "file_decoder.h"/* Decoding buffer size for Speex */#define SPEEX_BUFSIZE 1280/* size of ringbuffer for decoded Speex data (in frames) */#define RB_SPEEX_SIZE 262144#ifdef HAVE_SPEEXtypedef struct _speex_pdata_t { rb_t * rb; FILE * speex_file; OGGZ * oggz; SpeexBits bits; const SpeexMode * mode; void * decoder; int sample_rate; int channels; int vbr; int nframes; int frame_size; int exploring; int error; long packetno; int granulepos; int is_eos;} speex_pdata_t;#endif /* HAVE_SPEEX */decoder_t * speex_dec_init(file_decoder_t * fdec);#ifdef HAVE_SPEEXvoid speex_dec_destroy(decoder_t * dec);int speex_dec_open(decoder_t * dec, char * filename);void speex_dec_close(decoder_t * dec);unsigned int speex_dec_read(decoder_t * dec, float * dest, int num);void speex_dec_seek(decoder_t * dec, unsigned long long seek_to_pos);#endif /* HAVE_SPEEX */#endif /* _DEC_SPEEX_H */// vim: shiftwidth=8:tabstop=8:softtabstop=8 :
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -