mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
Large patch from Ben Allison fixing the MSVC build.
Patch tweaked a little to fix Linux build and clean up minor problems.
This commit is contained in:
@@ -902,8 +902,11 @@ static FLAC__bool generate_noisy_sine(void)
|
||||
|
||||
sample += sin (2.0 * k * M_PI * 1.0 / 32.0);
|
||||
sample *= 0.4;
|
||||
|
||||
#if !defined _MSC_VER
|
||||
write_little_endian_int16(f, lrintf(sample * 32700.0));
|
||||
#else
|
||||
write_little_endian_int16(f, (FLAC__int16)(sample * 32700.0));
|
||||
#endif
|
||||
};
|
||||
|
||||
fclose(f);
|
||||
|
||||
Reference in New Issue
Block a user