diff options
Diffstat (limited to 'src/plugins/Input/mad/decoder_mad.h')
| -rw-r--r-- | src/plugins/Input/mad/decoder_mad.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/Input/mad/decoder_mad.h b/src/plugins/Input/mad/decoder_mad.h index d15508848..2e91ed334 100644 --- a/src/plugins/Input/mad/decoder_mad.h +++ b/src/plugins/Input/mad/decoder_mad.h @@ -99,9 +99,14 @@ private: struct mad_synth m_synth; struct audio_dither m_left_dither, m_right_dither; + enum + { + CLIP_MIN = -MAD_F_ONE, + CLIP_MAX = MAD_F_ONE - 1 + }; + //converter functions unsigned long prng(unsigned long state); - void clip(mad_fixed_t *sample); long audio_linear_dither(unsigned int bits, mad_fixed_t sample, struct audio_dither *dither); long audio_linear_round(unsigned int bits, mad_fixed_t sample); }; |
