mpc_plugin.c: fix compilation error with MPC_FIXED_POINT
(It sounds like crap though) git-svn-id: https://svn.musicpd.org/mpd/trunk@4596 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
ae97bcdfa2
commit
354d9aed79
@ -98,7 +98,7 @@ static inline mpd_sint16 convertSample(MPC_SAMPLE_FORMAT sample)
|
|||||||
#ifdef MPC_FIXED_POINT
|
#ifdef MPC_FIXED_POINT
|
||||||
const int shift = 16 - MPC_FIXED_POINT_SCALE_SHIFT;
|
const int shift = 16 - MPC_FIXED_POINT_SCALE_SHIFT;
|
||||||
|
|
||||||
if (ssample > 0) {
|
if (sample > 0) {
|
||||||
sample <<= shift;
|
sample <<= shift;
|
||||||
} else if (shift < 0) {
|
} else if (shift < 0) {
|
||||||
sample >>= -shift;
|
sample >>= -shift;
|
||||||
|
Loading…
Reference in New Issue
Block a user