comparison decoders/smpeg.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 16cbfcb8d7fb
comparison
equal deleted inserted replaced
475:f0b8865577db 477:3e705c9180e5
210 SMPEG_actualSpec(smpeg, &spec); 210 SMPEG_actualSpec(smpeg, &spec);
211 sample->actual.format = spec.format; 211 sample->actual.format = spec.format;
212 sample->actual.rate = spec.freq; 212 sample->actual.rate = spec.freq;
213 sample->actual.channels = spec.channels; 213 sample->actual.channels = spec.channels;
214 sample->flags = SOUND_SAMPLEFLAG_CANSEEK; 214 sample->flags = SOUND_SAMPLEFLAG_CANSEEK;
215 sample->total_time = smpeg_info.total_time * 1000; 215 internal->total_time = smpeg_info.total_time * 1000;
216 internal->decoder_private = smpeg; 216 internal->decoder_private = smpeg;
217 217
218 SMPEG_play(smpeg); 218 SMPEG_play(smpeg);
219 return(1); 219 return(1);
220 } /* _SMPEG_open */ 220 } /* _SMPEG_open */