Mercurial > SDL_sound_CoreAudio
diff decoders/shn.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 | 2df1f5c62d38 |
line wrap: on
line diff
--- a/decoders/shn.c Sat May 08 22:06:14 2004 +0000 +++ b/decoders/shn.c Wed May 12 02:15:00 2004 +0000 @@ -580,8 +580,8 @@ BAIL_IF_MACRO(!verb_ReadLE32(shn, rw, &u32), NULL, 0); /* 'data' header */ BAIL_IF_MACRO(u32 != dataID, "SHN: No 'data' header.", 0); BAIL_IF_MACRO(!verb_ReadLE32(shn, rw, &u32), NULL, 0); /* chunksize */ - sample->total_time = u32 / bytes_per_second * 1000; - sample->total_time += (u32 % bytes_per_second) * 1000 / bytes_per_second; + internal->total_time = u32 / bytes_per_second * 1000; + internal->total_time += (u32 % bytes_per_second) * 1000 / bytes_per_second; return(1); } /* parse_riff_header */