We don't need ov_open anymore. :)
authorSam Lantinga <slouken@libsdl.org>
Wed, 18 Jul 2007 16:21:18 +0000
changeset 36673d7c3d9bbe6
parent 365 ca76d0d4be00
child 367 352578e23cb7
We don't need ov_open anymore. :)
dynamic_ogg.c
dynamic_ogg.h
     1.1 --- a/dynamic_ogg.c	Wed Jul 18 04:09:16 2007 +0000
     1.2 +++ b/dynamic_ogg.c	Wed Jul 18 16:21:18 2007 +0000
     1.3 @@ -52,13 +52,6 @@
     1.4  			SDL_UnloadObject(vorbis.handle);
     1.5  			return -1;
     1.6  		}
     1.7 -		vorbis.ov_open =
     1.8 -			(int (*)(FILE *,OggVorbis_File *,char *,long))
     1.9 -			SDL_LoadFunction(vorbis.handle, "ov_open");
    1.10 -		if ( vorbis.ov_open == NULL ) {
    1.11 -			SDL_UnloadObject(vorbis.handle);
    1.12 -			return -1;
    1.13 -		}
    1.14  		vorbis.ov_open_callbacks =
    1.15  			(int (*)(void *, OggVorbis_File *, char *, long, ov_callbacks))
    1.16  			SDL_LoadFunction(vorbis.handle, "ov_open_callbacks");
    1.17 @@ -108,7 +101,6 @@
    1.18  	if ( vorbis.loaded == 0 ) {
    1.19  		vorbis.ov_clear = ov_clear;
    1.20  		vorbis.ov_info = ov_info;
    1.21 -		vorbis.ov_open = ov_open;
    1.22  		vorbis.ov_open_callbacks = ov_open_callbacks;
    1.23  		vorbis.ov_pcm_total = ov_pcm_total;
    1.24  		vorbis.ov_read = ov_read;
     2.1 --- a/dynamic_ogg.h	Wed Jul 18 04:09:16 2007 +0000
     2.2 +++ b/dynamic_ogg.h	Wed Jul 18 16:21:18 2007 +0000
     2.3 @@ -32,7 +32,6 @@
     2.4  	void *handle;
     2.5  	int (*ov_clear)(OggVorbis_File *vf);
     2.6  	vorbis_info *(*ov_info)(OggVorbis_File *vf,int link);
     2.7 -	int (*ov_open)(FILE *f,OggVorbis_File *vf,char *initial,long ibytes);
     2.8  	int (*ov_open_callbacks)(void *datasource, OggVorbis_File *vf, char *initial, long ibytes, ov_callbacks callbacks);
     2.9  	ogg_int64_t (*ov_pcm_total)(OggVorbis_File *vf,int i);
    2.10  #ifdef OGG_USE_TREMOR