comparison decoders/ogg.c @ 477:3e705c9180e5

Fixed binary compatibility, added Sound_GetDuration().
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 12 May 2004 02:15:00 +0000
parents c66080364dff
children 6c4f29fc3d87
comparison
equal deleted inserted replaced
475:f0b8865577db 477:3e705c9180e5
210 sample->flags = SOUND_SAMPLEFLAG_CANSEEK; 210 sample->flags = SOUND_SAMPLEFLAG_CANSEEK;
211 sample->actual.rate = (Uint32) info->rate; 211 sample->actual.rate = (Uint32) info->rate;
212 sample->actual.channels = (Uint8) info->channels; 212 sample->actual.channels = (Uint8) info->channels;
213 total_time = ov_time_total(vf, -1); 213 total_time = ov_time_total(vf, -1);
214 if (OV_EINVAL == total_time) 214 if (OV_EINVAL == total_time)
215 sample->total_time = -1; 215 internal->total_time = -1;
216 else 216 else
217 sample->total_time = (Sint32)(total_time * 1000.0 + 0.5); 217 internal->total_time = (Sint32)(total_time * 1000.0 + 0.5);
218 218
219 219
220 /* 220 /*
221 * Since we might have more than one logical bitstream in the OGG file, 221 * Since we might have more than one logical bitstream in the OGG file,
222 * and these bitstreams may be in different formats, we might be 222 * and these bitstreams may be in different formats, we might be