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

📄 dec_vorbis.h

📁 Aqualung is an advanced music player primarily targeted for the GNU/Linux operating system, but als
💻 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_vorbis.h,v 1.4 2006/08/11 08:04:10 tszilagyi Exp $*/#ifndef _DEC_VORBIS_H#define _DEC_VORBIS_H#ifdef HAVE_OGG_VORBIS#ifdef _WIN32#undef _WIN32#include <vorbis/vorbisfile.h>#define _WIN32#else#include <vorbis/vorbisfile.h>#endif /* _WIN32 */#endif /* HAVE_OGG_VORBIS */#include "file_decoder.h"/* Decoding buffer size for Vorbis */#define VORBIS_BUFSIZE 4096/* size of ringbuffer for decoded Vorbis data (in frames) */#define RB_VORBIS_SIZE 262144#ifdef HAVE_OGG_VORBIStypedef struct _vorbis_pdata_t {        rb_t * rb;        FILE * vorbis_file;        OggVorbis_File vf;        vorbis_info * vi;        int is_eos;} vorbis_pdata_t;#endif /* HAVE_OGG_VORBIS */decoder_t * vorbis_decoder_init(file_decoder_t * fdec);#ifdef HAVE_OGG_VORBISvoid vorbis_decoder_destroy(decoder_t * dec);int vorbis_decoder_open(decoder_t * dec, char * filename);void vorbis_decoder_close(decoder_t * dec);unsigned int vorbis_decoder_read(decoder_t * dec, float * dest, int num);void vorbis_decoder_seek(decoder_t * dec, unsigned long long seek_to_pos);#endif /* HAVE_OGG_VORBIS */#endif /* _DEC_VORBIS_H */// vim: shiftwidth=8:tabstop=8:softtabstop=8 :  

⌨️ 快捷键说明

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