/* * 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* * ========================================================== * * OGG Vorbis decoding * * ========================================================== */ #ifndef _SND_OGG_H_ #define _SND_OGG_H_ #define OGG_DIR "music" typedef enum { PLAY, PAUSE, STOP } ogg_status_t; typedef enum { ABS, REL } ogg_seek_t; void OGG_Init (void); void OGG_Shutdown(void); void OGG_Reinit(void); qboolean OGG_Check(char *name); void OGG_Seek (ogg_seek_t type, double offset); void OGG_LoadFileList(void); void OGG_LoadPlaylist(char *name); qboolean OGG_Open(ogg_seek_t type, int offset); qboolean OGG_OpenName(char *filename); int OGG_Read (void); void OGG_Sequence(void); void OGG_Stop (void); void OGG_Stream(void); void S_RawSamplesVol(int samples, int rate, int width, int channels, byte * data, float volume); /* Console commands. */ void OGG_ListCmd(void); void OGG_ParseCmd(char *arg); void OGG_PauseCmd(void); void OGG_PlayCmd(void); void OGG_ResumeCmd(void); void OGG_SeekCmd(void); void OGG_StatusCmd(void); #endif