template.c: IS_SIGNED
check: make compile-time
This commit is contained in:
parent
19b2edfc4b
commit
2f2b44de76
@ -154,8 +154,9 @@ main(void)
|
||||
long double bytebeat_res = bytebeat((long double) w);
|
||||
|
||||
// 2. if signed, then wrap up into unsigned
|
||||
if (IS_SIGNED)
|
||||
bytebeat_res = signed_to_unsigned(bytebeat_res);
|
||||
#if IS_SIGNED
|
||||
bytebeat_res = signed_to_unsigned(bytebeat_res);
|
||||
#endif
|
||||
|
||||
// 3. convert audio data to sample
|
||||
SAMPLE_TYPE sample_res = (SAMPLE_TYPE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user