zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vorbisfile.h File Reference
#include <stdio.h>
#include "codec.h"

Go to the source code of this file.

Classes

struct  OggVorbis_File
 
struct  ov_callbacks
 

Macros

#define INITSET   4
 
#define NOTOPEN   0
 
#define OPENED   2
 
#define PARTOPEN   1
 
#define STREAMSET   3
 

Typedefs

typedef struct OggVorbis_File OggVorbis_File
 

Functions

static int _ov_header_fseek_wrap (FILE *f, ogg_int64_t off, int whence)
 
long ov_bitrate (OggVorbis_File *vf, int i)
 
long ov_bitrate_instant (OggVorbis_File *vf)
 
int ov_clear (OggVorbis_File *vf)
 
vorbis_commentov_comment (OggVorbis_File *vf, int link)
 
int ov_crosslap (OggVorbis_File *vf1, OggVorbis_File *vf2)
 
int ov_fopen (const char *path, OggVorbis_File *vf)
 
int ov_halfrate (OggVorbis_File *vf, int flag)
 
int ov_halfrate_p (OggVorbis_File *vf)
 
vorbis_infoov_info (OggVorbis_File *vf, int link)
 
int ov_open (FILE *f, OggVorbis_File *vf, const char *initial, long ibytes)
 
int ov_open_callbacks (void *datasource, OggVorbis_File *vf, const char *initial, long ibytes, ov_callbacks callbacks)
 
int ov_pcm_seek (OggVorbis_File *vf, ogg_int64_t pos)
 
int ov_pcm_seek_lap (OggVorbis_File *vf, ogg_int64_t pos)
 
int ov_pcm_seek_page (OggVorbis_File *vf, ogg_int64_t pos)
 
int ov_pcm_seek_page_lap (OggVorbis_File *vf, ogg_int64_t pos)
 
ogg_int64_t ov_pcm_tell (OggVorbis_File *vf)
 
ogg_int64_t ov_pcm_total (OggVorbis_File *vf, int i)
 
int ov_raw_seek (OggVorbis_File *vf, ogg_int64_t pos)
 
int ov_raw_seek_lap (OggVorbis_File *vf, ogg_int64_t pos)
 
ogg_int64_t ov_raw_tell (OggVorbis_File *vf)
 
ogg_int64_t ov_raw_total (OggVorbis_File *vf, int i)
 
long ov_read (OggVorbis_File *vf, char *buffer, int length, int bigendianp, int word, int sgned, int *bitstream)
 
long ov_read_filter (OggVorbis_File *vf, char *buffer, int length, int bigendianp, int word, int sgned, int *bitstream, void(*filter)(float **pcm, long channels, long samples, void *filter_param), void *filter_param)
 
long ov_read_float (OggVorbis_File *vf, float ***pcm_channels, int samples, int *bitstream)
 
long ov_seekable (OggVorbis_File *vf)
 
long ov_serialnumber (OggVorbis_File *vf, int i)
 
long ov_streams (OggVorbis_File *vf)
 
int ov_test (FILE *f, OggVorbis_File *vf, const char *initial, long ibytes)
 
int ov_test_callbacks (void *datasource, OggVorbis_File *vf, const char *initial, long ibytes, ov_callbacks callbacks)
 
int ov_test_open (OggVorbis_File *vf)
 
int ov_time_seek (OggVorbis_File *vf, double pos)
 
int ov_time_seek_lap (OggVorbis_File *vf, double pos)
 
int ov_time_seek_page (OggVorbis_File *vf, double pos)
 
int ov_time_seek_page_lap (OggVorbis_File *vf, double pos)
 
double ov_time_tell (OggVorbis_File *vf)
 
double ov_time_total (OggVorbis_File *vf, int i)
 

Variables

static ov_callbacks OV_CALLBACKS_DEFAULT
 
static ov_callbacks OV_CALLBACKS_NOCLOSE
 
static ov_callbacks OV_CALLBACKS_STREAMONLY
 
static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE
 

Macro Definition Documentation

#define INITSET   4
#define NOTOPEN   0

Definition at line 105 of file vorbisfile.h.

#define PARTOPEN   1

Definition at line 106 of file vorbisfile.h.

Referenced by _ov_open1(), _ov_open2(), and ov_test_open().

Typedef Documentation

Function Documentation

static int _ov_header_fseek_wrap ( FILE *  f,
ogg_int64_t  off,
int  whence 
)
static

Definition at line 53 of file vorbisfile.h.

References NULL.

int ov_fopen ( const char *  path,
OggVorbis_File vf 
)

Definition at line 1011 of file vorbisfile.c.

References NULL, ov_open(), and ret.

Referenced by Zeni::Sound_Buffer::load_ogg_vorbis(), and Zeni::Sound_Stream_AL::Sound_Stream_AL().

int ov_halfrate_p ( OggVorbis_File vf)
int ov_open ( FILE *  f,
OggVorbis_File vf,
const char *  initial,
long  ibytes 
)

Definition at line 1000 of file vorbisfile.c.

References _fseek64_wrap(), int, and ov_open_callbacks().

Referenced by ov_fopen().

int ov_open_callbacks ( void datasource,
OggVorbis_File vf,
const char *  initial,
long  ibytes,
ov_callbacks  callbacks 
)

Definition at line 993 of file vorbisfile.c.

References _ov_open1(), _ov_open2(), and ret.

Referenced by ov_open().

int ov_pcm_seek_lap ( OggVorbis_File vf,
ogg_int64_t  pos 
)

Definition at line 2274 of file vorbisfile.c.

References _ov_64_seek_lap(), and ov_pcm_seek().

int ov_pcm_seek_page_lap ( OggVorbis_File vf,
ogg_int64_t  pos 
)

Definition at line 2278 of file vorbisfile.c.

References _ov_64_seek_lap(), and ov_pcm_seek_page().

ogg_int64_t ov_pcm_tell ( OggVorbis_File vf)
int ov_raw_seek_lap ( OggVorbis_File vf,
ogg_int64_t  pos 
)

Definition at line 2270 of file vorbisfile.c.

References _ov_64_seek_lap(), and ov_raw_seek().

ogg_int64_t ov_raw_tell ( OggVorbis_File vf)

Definition at line 1750 of file vorbisfile.c.

References OggVorbis_File::offset, OPENED, OV_EINVAL, and OggVorbis_File::ready_state.

long ov_read ( OggVorbis_File vf,
char *  buffer,
int  length,
int  bigendianp,
int  word,
int  sgned,
int bitstream 
)

Definition at line 2007 of file vorbisfile.c.

References NULL, and ov_read_filter().

Referenced by Zeni::Sound_Buffer::load_ogg_vorbis().

long ov_read_filter ( OggVorbis_File vf,
char *  buffer,
int  length,
int  bigendianp,
int  word,
int  sgned,
int bitstream,
void(*)(float **pcm, long channels, long samples, void *filter_param)  filter,
void filter_param 
)
long ov_seekable ( OggVorbis_File vf)

Definition at line 1088 of file vorbisfile.c.

References OggVorbis_File::seekable.

long ov_serialnumber ( OggVorbis_File vf,
int  i 
)
long ov_streams ( OggVorbis_File vf)

Definition at line 1083 of file vorbisfile.c.

References OggVorbis_File::links.

int ov_test ( FILE *  f,
OggVorbis_File vf,
const char *  initial,
long  ibytes 
)

Definition at line 1066 of file vorbisfile.c.

References _fseek64_wrap(), int, and ov_test_callbacks().

int ov_test_callbacks ( void datasource,
OggVorbis_File vf,
const char *  initial,
long  ibytes,
ov_callbacks  callbacks 
)

Definition at line 1060 of file vorbisfile.c.

References _ov_open1().

Referenced by ov_test().

int ov_test_open ( OggVorbis_File vf)

Definition at line 1077 of file vorbisfile.c.

References _ov_open2(), OV_EINVAL, PARTOPEN, and OggVorbis_File::ready_state.

int ov_time_seek_lap ( OggVorbis_File vf,
double  pos 
)

Definition at line 2331 of file vorbisfile.c.

References _ov_d_seek_lap(), and ov_time_seek().

int ov_time_seek_page_lap ( OggVorbis_File vf,
double  pos 
)

Definition at line 2335 of file vorbisfile.c.

References _ov_d_seek_lap(), and ov_time_seek_page().

Variable Documentation

ov_callbacks OV_CALLBACKS_DEFAULT
static
Initial value:
= {
(size_t (*)(void *, size_t, size_t, void *)) fread,
(int (*)(void *)) fclose,
(long (*)(void *)) ftell
}
int
Definition: SDL_systhread.c:37
static int _ov_header_fseek_wrap(FILE *f, ogg_int64_t off, int whence)
Definition: vorbisfile.h:53
long ogg_int64_t
Definition: config_types.h:23
unsigned int size_t

Definition at line 75 of file vorbisfile.h.

ov_callbacks OV_CALLBACKS_NOCLOSE
static
Initial value:
= {
(size_t (*)(void *, size_t, size_t, void *)) fread,
(int (*)(void *)) NULL,
(long (*)(void *)) ftell
}
#define NULL
Definition: ftobjs.h:61
int
Definition: SDL_systhread.c:37
static int _ov_header_fseek_wrap(FILE *f, ogg_int64_t off, int whence)
Definition: vorbisfile.h:53
long ogg_int64_t
Definition: config_types.h:23
unsigned int size_t

Definition at line 82 of file vorbisfile.h.

ov_callbacks OV_CALLBACKS_STREAMONLY
static
Initial value:
= {
(size_t (*)(void *, size_t, size_t, void *)) fread,
(int (*)(void *, ogg_int64_t, int)) NULL,
(int (*)(void *)) fclose,
(long (*)(void *)) NULL
}
#define NULL
Definition: ftobjs.h:61
int
Definition: SDL_systhread.c:37
long ogg_int64_t
Definition: config_types.h:23
unsigned int size_t

Definition at line 89 of file vorbisfile.h.

ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE
static
Initial value:
= {
(size_t (*)(void *, size_t, size_t, void *)) fread,
(int (*)(void *, ogg_int64_t, int)) NULL,
(int (*)(void *)) NULL,
(long (*)(void *)) NULL
}
#define NULL
Definition: ftobjs.h:61
int
Definition: SDL_systhread.c:37
long ogg_int64_t
Definition: config_types.h:23
unsigned int size_t

Definition at line 96 of file vorbisfile.h.