FDD audio timing/volume tunings

This commit is contained in:
Toni Riikonen
2025-09-19 22:52:36 +03:00
parent 0ad4cb784c
commit dc037036d0
2 changed files with 8 additions and 7 deletions

View File

@@ -318,8 +318,9 @@ fdd_seek(int drive, int track_diff)
// Count actual seek time (6ms per track + 50ms base)
// 80 tracks -> 50 + 6 * 80 = 530ms
double seek_ratio = 80.0 / (double)drive_types[fdd[drive].type].max_track;
uint64_t seek_time_us = (50000 + (abs(actual_track_diff) * 6000 * seek_ratio)) * TIMER_USEC;
//double seek_ratio = 80.0 / (double)drive_types[fdd[drive].type].max_track;
double seek_ratio = 1.0;
uint64_t seek_time_us = (15000 + (abs(actual_track_diff) * 6000 * seek_ratio)) * TIMER_USEC;
if (!fdd_seek_timer[drive].callback) {
timer_add(&(fdd_seek_timer[drive]), fdd_seek_complete_callback, &drives[drive], 0);
}

View File

@@ -101,31 +101,31 @@ static drive_audio_samples_t samples_525 = {
.filename = "Panasonic_JU-475-5_5.25_1.2MB_motor_start_48000_16_1_PCM.wav",
.buffer = NULL,
.samples = 0,
.volume = 0.2f
.volume = 1.0f
},
.spindlemotor_loop = {
.filename = "Panasonic_JU-475-5_5.25_1.2MB_motor_loop_48000_16_1_PCM.wav",
.buffer = NULL,
.samples = 0,
.volume = 0.2f
.volume = 1.0f
},
.spindlemotor_stop = {
.filename = "Panasonic_JU-475-5_5.25_1.2MB_motor_stop_48000_16_1_PCM.wav",
.buffer = NULL,
.samples = 0,
.volume = 0.2f
.volume = 1.0f
},
.single_track_step = {
.filename = "Panasonic_JU-475-5_5.25_1.2MB_track_step_48000_16_1_PCM.wav",
.buffer = NULL,
.samples = 0,
.volume = 1.0f
.volume = 2.0f
},
.multi_track_seek = {
.filename = "Panasonic_JU-475-5_5.25_1.2MB_seekup_40_tracks_285ms_5ms_per_track_48000_16_1_PCM.wav",
.buffer = NULL,
.samples = 0,
.volume = 1.0f
.volume = 2.0f
}
};