Remove a few warnings

This commit is contained in:
OV2 2019-02-11 17:12:02 +01:00
parent b54ded7081
commit c052462248
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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]);