Revert sputrunc to u32 and change the struct field to u32 too.
This commit is contained in:
parent
f33e81f7c3
commit
5c7d20450f
|
@ -57,8 +57,8 @@ extern SoundInterface_struct *SNDCoreList[];
|
|||
|
||||
|
||||
|
||||
static FORCEINLINE s32 sputrunc(float f) { return u32floor(f); }
|
||||
static FORCEINLINE s32 sputrunc(double d) { return u32floor(d); }
|
||||
static FORCEINLINE u32 sputrunc(float f) { return u32floor(f); }
|
||||
static FORCEINLINE u32 sputrunc(double d) { return u32floor(d); }
|
||||
static FORCEINLINE s32 spumuldiv7(s32 val, u8 multiplier) {
|
||||
assert(multiplier <= 127);
|
||||
return (multiplier == 127) ? val : ((val * multiplier) >> 7);
|
||||
|
|
|
@ -83,7 +83,7 @@ struct channel_struct
|
|||
double sampcnt;
|
||||
double sampinc;
|
||||
// ADPCM specific
|
||||
int lastsampcnt;
|
||||
u32 lastsampcnt;
|
||||
s16 pcm16b, pcm16b_last;
|
||||
int index;
|
||||
u16 x;
|
||||
|
|
Loading…
Reference in New Issue