Mercurial > SDL_sound_CoreAudio
annotate decoders/ogg.c @ 327:aa7f6a110971
Added seek implementation.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Mon, 20 May 2002 06:46:43 +0000 |
parents | c97be6e1bd27 |
children | cbb15ecf423a |
rev | line source |
---|---|
24 | 1 /* |
2 * SDL_sound -- An abstract sound format decoding API. | |
3 * Copyright (C) 2001 Ryan C. Gordon. | |
4 * | |
5 * This library is free software; you can redistribute it and/or | |
6 * modify it under the terms of the GNU Lesser General Public | |
7 * License as published by the Free Software Foundation; either | |
8 * version 2.1 of the License, or (at your option) any later version. | |
9 * | |
10 * This library is distributed in the hope that it will be useful, | |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 * Lesser General Public License for more details. | |
14 * | |
15 * You should have received a copy of the GNU Lesser General Public | |
16 * License along with this library; if not, write to the Free Software | |
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
18 */ | |
19 | |
20 /* | |
21 * Ogg Vorbis decoder for SDL_sound. | |
22 * | |
23 * This driver handles .OGG audio files, and depends on libvorbisfile to | |
24 * do the actual decoding work. libvorbisfile is part of libvorbis, which | |
25 * is part of the Ogg Vorbis project. | |
26 * | |
27 * Ogg Vorbis: http://www.xiph.org/ogg/vorbis/ | |
28 * vorbisfile documentation: http://www.xiph.org/ogg/vorbis/doc/vorbisfile/ | |
29 * | |
184
47cc2de2ae36
Changed reference to "LICENSE" file to "COPYING".
Ryan C. Gordon <icculus@icculus.org>
parents:
149
diff
changeset
|
30 * Please see the file COPYING in the source's root directory. |
24 | 31 * |
32 * This file written by Ryan C. Gordon. (icculus@clutteredmind.org) | |
33 */ | |
34 | |
106
40de367eb59e
Changing my include structure to do this right.
Ryan C. Gordon <icculus@icculus.org>
parents:
104
diff
changeset
|
35 #if HAVE_CONFIG_H |
40de367eb59e
Changing my include structure to do this right.
Ryan C. Gordon <icculus@icculus.org>
parents:
104
diff
changeset
|
36 # include <config.h> |
40de367eb59e
Changing my include structure to do this right.
Ryan C. Gordon <icculus@icculus.org>
parents:
104
diff
changeset
|
37 #endif |
100
6d9fdec2f708
added config.h, added --enable-debug flag, various other changes to the build system
fingolfin
parents:
63
diff
changeset
|
38 |
104
103cfcb3c014
Updated to fix build system problem.
Ryan C. Gordon <icculus@icculus.org>
parents:
100
diff
changeset
|
39 #ifdef SOUND_SUPPORTS_OGG |
103cfcb3c014
Updated to fix build system problem.
Ryan C. Gordon <icculus@icculus.org>
parents:
100
diff
changeset
|
40 |
24 | 41 #include <stdio.h> |
42 #include <stdlib.h> | |
43 #include <string.h> | |
44 #include <math.h> | |
45 #include <assert.h> | |
106
40de367eb59e
Changing my include structure to do this right.
Ryan C. Gordon <icculus@icculus.org>
parents:
104
diff
changeset
|
46 |
40de367eb59e
Changing my include structure to do this right.
Ryan C. Gordon <icculus@icculus.org>
parents:
104
diff
changeset
|
47 #include "SDL_sound.h" |
40de367eb59e
Changing my include structure to do this right.
Ryan C. Gordon <icculus@icculus.org>
parents:
104
diff
changeset
|
48 |
40de367eb59e
Changing my include structure to do this right.
Ryan C. Gordon <icculus@icculus.org>
parents:
104
diff
changeset
|
49 #define __SDL_SOUND_INTERNAL__ |
40de367eb59e
Changing my include structure to do this right.
Ryan C. Gordon <icculus@icculus.org>
parents:
104
diff
changeset
|
50 #include "SDL_sound_internal.h" |
40de367eb59e
Changing my include structure to do this right.
Ryan C. Gordon <icculus@icculus.org>
parents:
104
diff
changeset
|
51 |
24 | 52 #include "vorbis/codec.h" |
53 #include "vorbis/vorbisfile.h" | |
54 | |
55 | |
47
ea58bc3b15d7
Added init() and quit() methods.
Ryan C. Gordon <icculus@icculus.org>
parents:
24
diff
changeset
|
56 static int OGG_init(void); |
ea58bc3b15d7
Added init() and quit() methods.
Ryan C. Gordon <icculus@icculus.org>
parents:
24
diff
changeset
|
57 static void OGG_quit(void); |
24 | 58 static int OGG_open(Sound_Sample *sample, const char *ext); |
59 static void OGG_close(Sound_Sample *sample); | |
60 static Uint32 OGG_read(Sound_Sample *sample); | |
221
c9772a9f5271
Initial implementation or stubs for rewind method. Other cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents:
184
diff
changeset
|
61 static int OGG_rewind(Sound_Sample *sample); |
306
c97be6e1bd27
Added framework for Sound_Seek() support.
Ryan C. Gordon <icculus@icculus.org>
parents:
231
diff
changeset
|
62 static int OGG_seek(Sound_Sample *sample, Uint32 ms); |
24 | 63 |
149
1df5c106504e
Decoders can now list multiple file extensions.
Ryan C. Gordon <icculus@icculus.org>
parents:
122
diff
changeset
|
64 static const char *extensions_ogg[] = { "OGG", NULL }; |
24 | 65 const Sound_DecoderFunctions __Sound_DecoderFunctions_OGG = |
66 { | |
67 { | |
149
1df5c106504e
Decoders can now list multiple file extensions.
Ryan C. Gordon <icculus@icculus.org>
parents:
122
diff
changeset
|
68 extensions_ogg, |
24 | 69 "Ogg Vorbis audio through VorbisFile", |
70 "Ryan C. Gordon <icculus@clutteredmind.org>", | |
71 "http://www.icculus.org/SDL_sound/" | |
72 }, | |
73 | |
221
c9772a9f5271
Initial implementation or stubs for rewind method. Other cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents:
184
diff
changeset
|
74 OGG_init, /* init() method */ |
c9772a9f5271
Initial implementation or stubs for rewind method. Other cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents:
184
diff
changeset
|
75 OGG_quit, /* quit() method */ |
c9772a9f5271
Initial implementation or stubs for rewind method. Other cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents:
184
diff
changeset
|
76 OGG_open, /* open() method */ |
c9772a9f5271
Initial implementation or stubs for rewind method. Other cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents:
184
diff
changeset
|
77 OGG_close, /* close() method */ |
c9772a9f5271
Initial implementation or stubs for rewind method. Other cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents:
184
diff
changeset
|
78 OGG_read, /* read() method */ |
306
c97be6e1bd27
Added framework for Sound_Seek() support.
Ryan C. Gordon <icculus@icculus.org>
parents:
231
diff
changeset
|
79 OGG_rewind, /* rewind() method */ |
c97be6e1bd27
Added framework for Sound_Seek() support.
Ryan C. Gordon <icculus@icculus.org>
parents:
231
diff
changeset
|
80 OGG_seek /* seek() method */ |
24 | 81 }; |
82 | |
83 | |
47
ea58bc3b15d7
Added init() and quit() methods.
Ryan C. Gordon <icculus@icculus.org>
parents:
24
diff
changeset
|
84 static int OGG_init(void) |
ea58bc3b15d7
Added init() and quit() methods.
Ryan C. Gordon <icculus@icculus.org>
parents:
24
diff
changeset
|
85 { |
ea58bc3b15d7
Added init() and quit() methods.
Ryan C. Gordon <icculus@icculus.org>
parents:
24
diff
changeset
|
86 return(1); /* always succeeds. */ |
ea58bc3b15d7
Added init() and quit() methods.
Ryan C. Gordon <icculus@icculus.org>
parents:
24
diff
changeset
|
87 } /* OGG_init */ |
ea58bc3b15d7
Added init() and quit() methods.
Ryan C. Gordon <icculus@icculus.org>
parents:
24
diff
changeset
|
88 |
ea58bc3b15d7
Added init() and quit() methods.
Ryan C. Gordon <icculus@icculus.org>
parents:
24
diff
changeset
|
89 |
ea58bc3b15d7
Added init() and quit() methods.
Ryan C. Gordon <icculus@icculus.org>
parents:
24
diff
changeset
|
90 static void OGG_quit(void) |
ea58bc3b15d7
Added init() and quit() methods.
Ryan C. Gordon <icculus@icculus.org>
parents:
24
diff
changeset
|
91 { |
ea58bc3b15d7
Added init() and quit() methods.
Ryan C. Gordon <icculus@icculus.org>
parents:
24
diff
changeset
|
92 /* it's a no-op. */ |
ea58bc3b15d7
Added init() and quit() methods.
Ryan C. Gordon <icculus@icculus.org>
parents:
24
diff
changeset
|
93 } /* OGG_quit */ |
ea58bc3b15d7
Added init() and quit() methods.
Ryan C. Gordon <icculus@icculus.org>
parents:
24
diff
changeset
|
94 |
ea58bc3b15d7
Added init() and quit() methods.
Ryan C. Gordon <icculus@icculus.org>
parents:
24
diff
changeset
|
95 |
ea58bc3b15d7
Added init() and quit() methods.
Ryan C. Gordon <icculus@icculus.org>
parents:
24
diff
changeset
|
96 |
24 | 97 /* |
98 * These are callbacks from vorbisfile that let them read data from | |
99 * a RWops... | |
100 */ | |
101 | |
63
9669aa13d3e0
Changes in preparation for autoconf, and the RWops wrappers changed to
Ryan C. Gordon <icculus@icculus.org>
parents:
59
diff
changeset
|
102 static size_t RWops_ogg_read(void *ptr, size_t size, size_t nmemb, void *datasource) |
24 | 103 { |
104 return((size_t) SDL_RWread((SDL_RWops *) datasource, ptr, size, nmemb)); | |
105 } /* RWops_ogg_read */ | |
106 | |
122 | 107 static int RWops_ogg_seek(void *datasource, ogg_int64_t offset, int whence) |
24 | 108 { |
109 return(SDL_RWseek((SDL_RWops *) datasource, offset, whence)); | |
110 } /* RWops_ogg_seek */ | |
111 | |
63
9669aa13d3e0
Changes in preparation for autoconf, and the RWops wrappers changed to
Ryan C. Gordon <icculus@icculus.org>
parents:
59
diff
changeset
|
112 static int RWops_ogg_close(void *datasource) |
24 | 113 { |
114 /* do nothing; SDL_sound will delete the RWops at a higher level. */ | |
115 return(0); /* this is success in fclose(), so I guess that's okay. */ | |
116 } /* RWops_ogg_close */ | |
117 | |
63
9669aa13d3e0
Changes in preparation for autoconf, and the RWops wrappers changed to
Ryan C. Gordon <icculus@icculus.org>
parents:
59
diff
changeset
|
118 static long RWops_ogg_tell(void *datasource) |
24 | 119 { |
120 return((long) SDL_RWtell((SDL_RWops *) datasource)); | |
121 } /* RWops_ogg_tell */ | |
122 | |
123 static const ov_callbacks RWops_ogg_callbacks = | |
124 { | |
125 RWops_ogg_read, | |
126 RWops_ogg_seek, | |
127 RWops_ogg_close, | |
128 RWops_ogg_tell | |
129 }; | |
130 | |
131 | |
132 /* Return a human readable version of an VorbisFile error code... */ | |
59
cd91e1857b42
Changed _D macro to SNDDBG, and fixed a warning if compiling without debug
Ryan C. Gordon <icculus@icculus.org>
parents:
47
diff
changeset
|
133 #if (defined DEBUG_CHATTER) |
24 | 134 static const char *ogg_error(int errnum) |
135 { | |
136 switch(errnum) | |
137 { | |
138 case OV_EREAD: | |
139 return("i/o error"); | |
140 case OV_ENOTVORBIS: | |
141 return("not a vorbis file"); | |
142 case OV_EVERSION: | |
143 return("Vorbis version mismatch"); | |
144 case OV_EBADHEADER: | |
145 return("invalid Vorbis bitstream header"); | |
146 case OV_EFAULT: | |
147 return("internal logic fault in Vorbis library"); | |
148 } /* switch */ | |
149 | |
150 return("unknown error"); | |
151 } /* ogg_error */ | |
59
cd91e1857b42
Changed _D macro to SNDDBG, and fixed a warning if compiling without debug
Ryan C. Gordon <icculus@icculus.org>
parents:
47
diff
changeset
|
152 #endif |
24 | 153 |
154 static __inline__ void output_ogg_comments(OggVorbis_File *vf) | |
155 { | |
156 #if (defined DEBUG_CHATTER) | |
157 int i; | |
158 vorbis_comment *vc = ov_comment(vf, -1); | |
159 | |
160 if (vc == NULL) | |
161 return; | |
162 | |
59
cd91e1857b42
Changed _D macro to SNDDBG, and fixed a warning if compiling without debug
Ryan C. Gordon <icculus@icculus.org>
parents:
47
diff
changeset
|
163 SNDDBG(("OGG: vendor == [%s].\n", vc->vendor)); |
24 | 164 for (i = 0; i < vc->comments; i++) |
165 { | |
59
cd91e1857b42
Changed _D macro to SNDDBG, and fixed a warning if compiling without debug
Ryan C. Gordon <icculus@icculus.org>
parents:
47
diff
changeset
|
166 SNDDBG(("OGG: user comment [%s].\n", vc->user_comments[i])); |
24 | 167 } /* for */ |
168 #endif | |
169 } /* output_ogg_comments */ | |
170 | |
171 | |
172 static int OGG_open(Sound_Sample *sample, const char *ext) | |
173 { | |
174 int rc; | |
175 OggVorbis_File *vf; | |
176 vorbis_info *info; | |
177 Sound_SampleInternal *internal = (Sound_SampleInternal *) sample->opaque; | |
178 | |
179 vf = (OggVorbis_File *) malloc(sizeof (OggVorbis_File)); | |
180 BAIL_IF_MACRO(vf == NULL, ERR_OUT_OF_MEMORY, 0); | |
181 | |
182 rc = ov_open_callbacks(internal->rw, vf, NULL, 0, RWops_ogg_callbacks); | |
183 if (rc != 0) | |
184 { | |
59
cd91e1857b42
Changed _D macro to SNDDBG, and fixed a warning if compiling without debug
Ryan C. Gordon <icculus@icculus.org>
parents:
47
diff
changeset
|
185 SNDDBG(("OGG: can't grok data. reason: [%s].\n", ogg_error(rc))); |
24 | 186 free(vf); |
187 BAIL_MACRO("OGG: Not valid Ogg Vorbis data.", 0); | |
188 } /* if */ | |
189 | |
190 info = ov_info(vf, -1); | |
191 if (info == NULL) | |
192 { | |
193 ov_clear(vf); | |
194 free(vf); | |
195 BAIL_MACRO("OGG: failed to retrieve bitstream info", 0); | |
196 } /* if */ | |
197 | |
59
cd91e1857b42
Changed _D macro to SNDDBG, and fixed a warning if compiling without debug
Ryan C. Gordon <icculus@icculus.org>
parents:
47
diff
changeset
|
198 SNDDBG(("OGG: Accepting data stream.\n")); |
24 | 199 |
200 output_ogg_comments(vf); | |
59
cd91e1857b42
Changed _D macro to SNDDBG, and fixed a warning if compiling without debug
Ryan C. Gordon <icculus@icculus.org>
parents:
47
diff
changeset
|
201 SNDDBG(("OGG: bitstream version == (%d).\n", info->version)); |
cd91e1857b42
Changed _D macro to SNDDBG, and fixed a warning if compiling without debug
Ryan C. Gordon <icculus@icculus.org>
parents:
47
diff
changeset
|
202 SNDDBG(("OGG: bitstream channels == (%d).\n", info->channels)); |
cd91e1857b42
Changed _D macro to SNDDBG, and fixed a warning if compiling without debug
Ryan C. Gordon <icculus@icculus.org>
parents:
47
diff
changeset
|
203 SNDDBG(("OGG: bitstream sampling rate == (%ld).\n", info->rate)); |
cd91e1857b42
Changed _D macro to SNDDBG, and fixed a warning if compiling without debug
Ryan C. Gordon <icculus@icculus.org>
parents:
47
diff
changeset
|
204 SNDDBG(("OGG: seekable == {%s}.\n", ov_seekable(vf) ? "TRUE" : "FALSE")); |
cd91e1857b42
Changed _D macro to SNDDBG, and fixed a warning if compiling without debug
Ryan C. Gordon <icculus@icculus.org>
parents:
47
diff
changeset
|
205 SNDDBG(("OGG: number of logical bitstreams == (%ld).\n", ov_streams(vf))); |
cd91e1857b42
Changed _D macro to SNDDBG, and fixed a warning if compiling without debug
Ryan C. Gordon <icculus@icculus.org>
parents:
47
diff
changeset
|
206 SNDDBG(("OGG: serial number == (%ld).\n", ov_serialnumber(vf, -1))); |
cd91e1857b42
Changed _D macro to SNDDBG, and fixed a warning if compiling without debug
Ryan C. Gordon <icculus@icculus.org>
parents:
47
diff
changeset
|
207 SNDDBG(("OGG: total seconds of sample == (%f).\n", ov_time_total(vf, -1))); |
24 | 208 |
209 internal->decoder_private = vf; | |
327
aa7f6a110971
Added seek implementation.
Ryan C. Gordon <icculus@icculus.org>
parents:
306
diff
changeset
|
210 sample->flags = SOUND_SAMPLEFLAG_CANSEEK; |
24 | 211 sample->actual.rate = (Uint32) info->rate; |
212 sample->actual.channels = (Uint8) info->channels; | |
213 | |
214 /* | |
215 * Since we might have more than one logical bitstream in the OGG file, | |
216 * and these bitstreams may be in different formats, we might be | |
217 * converting two or three times: once in vorbisfile, once again in | |
218 * SDL_sound, and perhaps a third time to get it to the sound device's | |
219 * format. That's wickedly inefficient. | |
220 * | |
221 * To combat this a little, if the user specified a desired format, we | |
222 * claim that to be the "actual" format of the collection of logical | |
223 * bitstreams. This means that VorbisFile will do a conversion as | |
224 * necessary, and SDL_sound will not. If the user didn't specify a | |
225 * desired format, then we pretend the "actual" format is something that | |
226 * OGG files are apparently commonly encoded in. | |
227 */ | |
228 sample->actual.format = (sample->desired.format == 0) ? | |
229 AUDIO_S16LSB : sample->desired.format; | |
230 return(1); | |
231 } /* OGG_open */ | |
232 | |
233 | |
234 static void OGG_close(Sound_Sample *sample) | |
235 { | |
236 Sound_SampleInternal *internal = (Sound_SampleInternal *) sample->opaque; | |
237 OggVorbis_File *vf = (OggVorbis_File *) internal->decoder_private; | |
238 ov_clear(vf); | |
239 free(vf); | |
240 } /* OGG_close */ | |
241 | |
242 | |
243 static Uint32 OGG_read(Sound_Sample *sample) | |
244 { | |
245 int rc; | |
246 int bitstream; | |
247 Sound_SampleInternal *internal = (Sound_SampleInternal *) sample->opaque; | |
248 OggVorbis_File *vf = (OggVorbis_File *) internal->decoder_private; | |
249 | |
250 rc = ov_read(vf, internal->buffer, internal->buffer_size, | |
251 ((sample->actual.format & 0x1000) ? 1 : 0), /* bigendian? */ | |
252 ((sample->actual.format & 0xFF) / 8), /* bytes per sample point */ | |
253 ((sample->actual.format & 0x8000) ? 1 : 0), /* signed data? */ | |
254 &bitstream); | |
255 | |
256 /* Make sure the read went smoothly... */ | |
257 if (rc == 0) | |
258 sample->flags |= SOUND_SAMPLEFLAG_EOF; | |
259 | |
260 else if (rc < 0) | |
261 sample->flags |= SOUND_SAMPLEFLAG_ERROR; | |
262 | |
263 /* (next call this EAGAIN may turn into an EOF or error.) */ | |
264 else if ((Uint32) rc < internal->buffer_size) | |
265 sample->flags |= SOUND_SAMPLEFLAG_EAGAIN; | |
266 | |
267 return((Uint32) rc); | |
268 } /* OGG_read */ | |
269 | |
221
c9772a9f5271
Initial implementation or stubs for rewind method. Other cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents:
184
diff
changeset
|
270 |
c9772a9f5271
Initial implementation or stubs for rewind method. Other cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents:
184
diff
changeset
|
271 static int OGG_rewind(Sound_Sample *sample) |
c9772a9f5271
Initial implementation or stubs for rewind method. Other cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents:
184
diff
changeset
|
272 { |
231
d3dc34315ac7
Rewind method implemented by Torbj�rn.
Ryan C. Gordon <icculus@icculus.org>
parents:
221
diff
changeset
|
273 Sound_SampleInternal *internal = (Sound_SampleInternal *) sample->opaque; |
d3dc34315ac7
Rewind method implemented by Torbj�rn.
Ryan C. Gordon <icculus@icculus.org>
parents:
221
diff
changeset
|
274 OggVorbis_File *vf = (OggVorbis_File *) internal->decoder_private; |
d3dc34315ac7
Rewind method implemented by Torbj�rn.
Ryan C. Gordon <icculus@icculus.org>
parents:
221
diff
changeset
|
275 |
d3dc34315ac7
Rewind method implemented by Torbj�rn.
Ryan C. Gordon <icculus@icculus.org>
parents:
221
diff
changeset
|
276 BAIL_IF_MACRO(ov_raw_seek(vf, 0) < 0, ERR_IO_ERROR, 0); |
d3dc34315ac7
Rewind method implemented by Torbj�rn.
Ryan C. Gordon <icculus@icculus.org>
parents:
221
diff
changeset
|
277 return(1); |
221
c9772a9f5271
Initial implementation or stubs for rewind method. Other cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents:
184
diff
changeset
|
278 } /* OGG_rewind */ |
c9772a9f5271
Initial implementation or stubs for rewind method. Other cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents:
184
diff
changeset
|
279 |
306
c97be6e1bd27
Added framework for Sound_Seek() support.
Ryan C. Gordon <icculus@icculus.org>
parents:
231
diff
changeset
|
280 |
c97be6e1bd27
Added framework for Sound_Seek() support.
Ryan C. Gordon <icculus@icculus.org>
parents:
231
diff
changeset
|
281 static int OGG_seek(Sound_Sample *sample, Uint32 ms) |
c97be6e1bd27
Added framework for Sound_Seek() support.
Ryan C. Gordon <icculus@icculus.org>
parents:
231
diff
changeset
|
282 { |
327
aa7f6a110971
Added seek implementation.
Ryan C. Gordon <icculus@icculus.org>
parents:
306
diff
changeset
|
283 Sound_SampleInternal *internal = (Sound_SampleInternal *) sample->opaque; |
aa7f6a110971
Added seek implementation.
Ryan C. Gordon <icculus@icculus.org>
parents:
306
diff
changeset
|
284 OggVorbis_File *vf = (OggVorbis_File *) internal->decoder_private; |
aa7f6a110971
Added seek implementation.
Ryan C. Gordon <icculus@icculus.org>
parents:
306
diff
changeset
|
285 double timepos = (((double) ms) / 1000.0); |
aa7f6a110971
Added seek implementation.
Ryan C. Gordon <icculus@icculus.org>
parents:
306
diff
changeset
|
286 BAIL_IF_MACRO(ov_time_seek(vf, timepos) < 0, ERR_IO_ERROR, 0); |
aa7f6a110971
Added seek implementation.
Ryan C. Gordon <icculus@icculus.org>
parents:
306
diff
changeset
|
287 return(1); |
306
c97be6e1bd27
Added framework for Sound_Seek() support.
Ryan C. Gordon <icculus@icculus.org>
parents:
231
diff
changeset
|
288 } /* OGG_seek */ |
c97be6e1bd27
Added framework for Sound_Seek() support.
Ryan C. Gordon <icculus@icculus.org>
parents:
231
diff
changeset
|
289 |
63
9669aa13d3e0
Changes in preparation for autoconf, and the RWops wrappers changed to
Ryan C. Gordon <icculus@icculus.org>
parents:
59
diff
changeset
|
290 #endif /* SOUND_SUPPORTS_OGG */ |
9669aa13d3e0
Changes in preparation for autoconf, and the RWops wrappers changed to
Ryan C. Gordon <icculus@icculus.org>
parents:
59
diff
changeset
|
291 |
9669aa13d3e0
Changes in preparation for autoconf, and the RWops wrappers changed to
Ryan C. Gordon <icculus@icculus.org>
parents:
59
diff
changeset
|
292 |
24 | 293 /* end of ogg.c ... */ |
294 |