Mercurial > sdl-ios-xcode
comparison src/audio/SDL_mixer.c @ 2130:3ee59c43d784
Fixes for compiling with Visual C++ 8.0 Express Edition
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 19 Jun 2007 05:53:56 +0000 |
parents | 5f6550e5184f |
children | 99210400e8b9 |
comparison
equal
deleted
inserted
replaced
2129:047245361002 | 2130:3ee59c43d784 |
---|---|
301 const float *src32 = (float *) src; | 301 const float *src32 = (float *) src; |
302 float *dst32 = (float *) dst; | 302 float *dst32 = (float *) dst; |
303 float src1, src2; | 303 float src1, src2; |
304 double dst_sample; | 304 double dst_sample; |
305 /* !!! FIXME: are these right? */ | 305 /* !!! FIXME: are these right? */ |
306 const double max_audioval = 3.40282347e+38F; | 306 const double max_audioval = 3.402823466e+38F; |
307 const double min_audioval = -3.40282347e+38F; | 307 const double min_audioval = -3.402823466e+38F; |
308 | 308 |
309 len /= 4; | 309 len /= 4; |
310 while (len--) { | 310 while (len--) { |
311 src1 = ((SDL_SwapFloatLE(*src32) * fvolume) * fmaxvolume); | 311 src1 = ((SDL_SwapFloatLE(*src32) * fvolume) * fmaxvolume); |
312 src2 = SDL_SwapFloatLE(*dst32); | 312 src2 = SDL_SwapFloatLE(*dst32); |
330 const float *src32 = (float *) src; | 330 const float *src32 = (float *) src; |
331 float *dst32 = (float *) dst; | 331 float *dst32 = (float *) dst; |
332 float src1, src2; | 332 float src1, src2; |
333 double dst_sample; | 333 double dst_sample; |
334 /* !!! FIXME: are these right? */ | 334 /* !!! FIXME: are these right? */ |
335 const double max_audioval = 3.40282347e+38F; | 335 const double max_audioval = 3.402823466e+38F; |
336 const double min_audioval = -3.40282347e+38F; | 336 const double min_audioval = -3.402823466e+38F; |
337 | 337 |
338 len /= 4; | 338 len /= 4; |
339 while (len--) { | 339 while (len--) { |
340 src1 = ((SDL_SwapFloatBE(*src32) * fvolume) * fmaxvolume); | 340 src1 = ((SDL_SwapFloatBE(*src32) * fvolume) * fmaxvolume); |
341 src2 = SDL_SwapFloatBE(*dst32); | 341 src2 = SDL_SwapFloatBE(*dst32); |