diff --git a/firmware/code/fix16.inl b/firmware/code/fix16.inl index 131313f..5198b6e 100644 --- a/firmware/code/fix16.inl +++ b/firmware/code/fix16.inl @@ -70,7 +70,7 @@ static inline int32_t norm_fix3_28_to_s16sample(fix3_28_t a) { } /* When we converted the USB audio sample to a fixed point number, we applied a normalization, or a gain of 1/65536. To convert it back, we can undo that - by shifting it back by the same amount we shifted it in the first place. */ + by shifting it but we output 24bts, so the shift is reduced. */ return (a >> 4); } @@ -108,4 +108,4 @@ static inline fix3_28_t fix16_mul(fix3_28_t inArg0, fix3_28_t inArg1) { #endif return product_hi; -} \ No newline at end of file +}SHRT_MAX << 8 \ No newline at end of file