pcecd: adjust seektime calc.

This commit is contained in:
sorgelig
2020-05-07 21:50:18 +08:00
parent e64d7ac717
commit 2b582cc6aa

View File

@@ -97,19 +97,19 @@ float get_cd_seek_ms(int start_sector, int target_sector)
}
if (abs(target_sector - start_sector) < 5)
{
milliseconds = (9 * 1000 / 60) + (float)(sector_list[target_index].rotation_ms / 2);
milliseconds = (9 * 1000 / 60) + (float)(sector_list[target_index].rotation_ms / 0.7);
}
else if (track_difference <= 80)
{
milliseconds = (16 * 1000 / 60) + (float)(sector_list[target_index].rotation_ms / 2);
milliseconds = (16 * 1000 / 60) + (float)(sector_list[target_index].rotation_ms / 0.7);
}
else if (track_difference <= 160)
{
milliseconds = (22 * 1000 / 60) + (float)(sector_list[target_index].rotation_ms / 2);
milliseconds = (22 * 1000 / 60) + (float)(sector_list[target_index].rotation_ms / 0.7);
}
else if (track_difference <= 644)
{
milliseconds = (22 * 1000 / 60) + (float)(sector_list[target_index].rotation_ms / 2) + (float)((track_difference - 161) * 16.66 / 80);
milliseconds = (22 * 1000 / 60) + (float)(sector_list[target_index].rotation_ms / 0.7) + (float)((track_difference - 161) * 16.66 / 80);
}
else
{