Skip to content

Latest commit

 

History

History
50 lines (41 loc) · 1.68 KB

dynamic_ogg.h

File metadata and controls

50 lines (41 loc) · 1.68 KB
 
1
2
/*
SDL_mixer: An audio mixer library based on the SDL library
Dec 8, 2008
Dec 8, 2008
3
Copyright (C) 1997-2009 Sam Lantinga
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Sam Lantinga
slouken@libsdl.org
*/
#ifdef OGG_MUSIC
Jul 15, 2007
Jul 15, 2007
24
25
26
#ifdef OGG_USE_TREMOR
#include <tremor/ivorbisfile.h>
#else
27
#include <vorbis/vorbisfile.h>
Jul 15, 2007
Jul 15, 2007
28
#endif
29
30
31
32
33
34
35
36
typedef struct {
int loaded;
void *handle;
int (*ov_clear)(OggVorbis_File *vf);
vorbis_info *(*ov_info)(OggVorbis_File *vf,int link);
int (*ov_open_callbacks)(void *datasource, OggVorbis_File *vf, char *initial, long ibytes, ov_callbacks callbacks);
ogg_int64_t (*ov_pcm_total)(OggVorbis_File *vf,int i);
Jul 15, 2007
Jul 15, 2007
37
38
39
#ifdef OGG_USE_TREMOR
long (*ov_read)(OggVorbis_File *vf,char *buffer,int length, int *bitstream);
#else
40
long (*ov_read)(OggVorbis_File *vf,char *buffer,int length, int bigendianp,int word,int sgned,int *bitstream);
Jul 15, 2007
Jul 15, 2007
41
#endif
42
43
44
45
46
int (*ov_time_seek)(OggVorbis_File *vf,double pos);
} vorbis_loader;
extern vorbis_loader vorbis;
Nov 8, 2009
Nov 8, 2009
47
48
#endif /* OGG_MUSIC */
49
50
extern int Mix_InitOgg();
extern void Mix_QuitOgg();