Mercurial > sdl-ios-xcode
comparison src/audio/SDL_audiocvt.c @ 3032:77c3e67f0740
Fixed Visual C++ build
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 12 Jan 2009 08:46:28 +0000 |
parents | f3dcf04412cf |
children | 62d4992e5a92 |
comparison
equal
deleted
inserted
replaced
3031:86918831452f | 3032:77c3e67f0740 |
---|---|
935 | 935 |
936 /* Update (cvt) with filter details... */ | 936 /* Update (cvt) with filter details... */ |
937 cvt->filters[cvt->filter_index++] = filter; | 937 cvt->filters[cvt->filter_index++] = filter; |
938 if (src_rate < dst_rate) { | 938 if (src_rate < dst_rate) { |
939 const double mult = ((double) dst_rate) / ((double) src_rate); | 939 const double mult = ((double) dst_rate) / ((double) src_rate); |
940 cvt->len_mult *= (int) ceil(mult); /* !!! FIXME: C runtime dependency. */ | 940 cvt->len_mult *= (int) SDL_ceil(mult); |
941 cvt->len_ratio *= mult; | 941 cvt->len_ratio *= mult; |
942 } else { | 942 } else { |
943 cvt->len_ratio /= ((double) src_rate) / ((double) dst_rate); | 943 cvt->len_ratio /= ((double) src_rate) / ((double) dst_rate); |
944 } | 944 } |
945 | 945 |