Remove a few warnings
This commit is contained in:
parent
b54ded7081
commit
c052462248
@ -342,7 +342,7 @@ void S9xResetAPU(void)
|
|||||||
spc::remainder = 0;
|
spc::remainder = 0;
|
||||||
|
|
||||||
SNES::cpu.reset();
|
SNES::cpu.reset();
|
||||||
SNES::cpu.frequency = Settings.PAL ? PAL_MASTER_CLOCK : NTSC_MASTER_CLOCK;
|
SNES::cpu.frequency = (int)(Settings.PAL ? PAL_MASTER_CLOCK : NTSC_MASTER_CLOCK);
|
||||||
SNES::smp.power();
|
SNES::smp.power();
|
||||||
SNES::dsp.power();
|
SNES::dsp.power();
|
||||||
SNES::dsp.spc_dsp.set_spc_snapshot_callback(SPCSnapshotCallback);
|
SNES::dsp.spc_dsp.set_spc_snapshot_callback(SPCSnapshotCallback);
|
||||||
|
@ -149,8 +149,8 @@ class Resampler
|
|||||||
|
|
||||||
while (r_frac <= 1.0 && o_position < num_samples)
|
while (r_frac <= 1.0 && o_position < num_samples)
|
||||||
{
|
{
|
||||||
hermite_val[0] = (int)hermite(r_frac, r_left[0], r_left[1], r_left[2], r_left[3]);
|
hermite_val[0] = (int)hermite(r_frac, (float)r_left[0], (float)r_left[1], (float)r_left[2], (float)r_left[3]);
|
||||||
hermite_val[1] = (int)hermite(r_frac, r_right[0], r_right[1], r_right[2], r_right[3]);
|
hermite_val[1] = (int)hermite(r_frac, (float)r_right[0], (float)r_right[1], (float)r_right[2], (float)r_right[3]);
|
||||||
data[o_position] = short_clamp(hermite_val[0]);
|
data[o_position] = short_clamp(hermite_val[0]);
|
||||||
data[o_position + 1] = short_clamp(hermite_val[1]);
|
data[o_position + 1] = short_clamp(hermite_val[1]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user