diff options
author | Paul Adenot <[email protected]> | 2017-10-03 13:38:45 +0200 |
---|---|---|
committer | Paul Adenot <[email protected]> | 2017-10-03 13:38:45 +0200 |
commit | 40cd4ad03b68a215e985979c96783824f19e288f (patch) | |
tree | 259bf0b4ce46649bb16562cbe8dacc0f1e1b0293 /src/cubeb_resampler_internal.h | |
parent | ba2a89611875cd9f2dabae99a362461b03c0dd3d (diff) | |
download | cubeb-40cd4ad03b68a215e985979c96783824f19e288f.tar.gz cubeb-40cd4ad03b68a215e985979c96783824f19e288f.zip |
Fix warning as errors.
Diffstat (limited to 'src/cubeb_resampler_internal.h')
-rw-r--r-- | src/cubeb_resampler_internal.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/cubeb_resampler_internal.h b/src/cubeb_resampler_internal.h index b15bdba..ca08ec5 100644 --- a/src/cubeb_resampler_internal.h +++ b/src/cubeb_resampler_internal.h @@ -38,17 +38,13 @@ MOZ_END_STD_NAMESPACE #include <stdio.h> /* This header file contains the internal C++ API of the resamplers, for testing. */ -namespace { + // When dropping audio input frames to prevent building // an input delay, this function returns the number of frames // to keep in the buffer. // @parameter sample_rate The sample rate of the stream. // @return A number of frames to keep. -uint32_t min_buffered_audio_frame(uint32_t sample_rate) -{ - return sample_rate / 20; -} -} +uint32_t min_buffered_audio_frame(uint32_t sample_rate); int to_speex_quality(cubeb_resampler_quality q); |