diff options
author | Matthew Gregan <[email protected]> | 2016-06-07 14:14:52 +1200 |
---|---|---|
committer | Matthew Gregan <[email protected]> | 2016-06-07 14:14:52 +1200 |
commit | f20762315925b5041f3ab189a6347ebc411a6ec3 (patch) | |
tree | 37f24324bad551c2d3561a6fc28974207df9f2cd /src/cubeb_resampler_internal.h | |
parent | 71ab5a404ebb6f8513e23095d82ffab3a46d8a55 (diff) | |
download | cubeb-f20762315925b5041f3ab189a6347ebc411a6ec3.tar.gz cubeb-f20762315925b5041f3ab189a6347ebc411a6ec3.zip |
wasapi,winmm: Fix various VS2015 analysis warnings.
Diffstat (limited to 'src/cubeb_resampler_internal.h')
-rw-r--r-- | src/cubeb_resampler_internal.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cubeb_resampler_internal.h b/src/cubeb_resampler_internal.h index e22b610..3a6aaca 100644 --- a/src/cubeb_resampler_internal.h +++ b/src/cubeb_resampler_internal.h @@ -215,8 +215,8 @@ public: size_t output_for_input(uint32_t input_frames) { - return ceilf(input_frames / resampling_ratio) - - resampling_in_buffer.length() / channels; + return size_t(ceilf(input_frames / resampling_ratio) + - resampling_in_buffer.length() / channels); } /** Returns a buffer containing exactly `output_frame_count` resampled frames. @@ -263,8 +263,8 @@ public: * number of output frames will be exactly equal. */ uint32_t input_needed_for_output(uint32_t output_frame_count) { - return ceilf(output_frame_count * resampling_ratio) + 1 - - samples_to_frames(resampling_in_buffer.length()); + return uint32_t(ceilf(output_frame_count * resampling_ratio) + 1 + - samples_to_frames(resampling_in_buffer.length())); } /** Returns a pointer to the input buffer, that contains empty space for at |