diff --git a/src/dev/audio/speaker.c b/src/dev/audio/speaker.c index 8768ffb..45693b4 100644 --- a/src/dev/audio/speaker.c +++ b/src/dev/audio/speaker.c @@ -69,7 +69,7 @@ ALuint spkr_buffers[BUFFER_COUNT]; const int spkr_fps = fps; const int spkr_seconds = 1; const unsigned spkr_sample_rate = 44100; -unsigned spkr_extra_buf = 780 / fps; +unsigned spkr_extra_buf = 800 / fps; const unsigned spkr_buf_size = spkr_seconds * spkr_sample_rate * 2 / spkr_fps; int16_t spkr_samples [ spkr_buf_size * spkr_fps * BUFFER_COUNT * 2]; // stereo unsigned spkr_sample_idx = 0; diff --git a/src/dev/disk/disk.c b/src/dev/disk/disk.c index 0f09569..326476d 100644 --- a/src/dev/disk/disk.c +++ b/src/dev/disk/disk.c @@ -18,7 +18,7 @@ disk_t disk = { 0, // clk_since_last_read }; -const int diskAccelerator_frames = 1; +const int diskAccelerator_frames = 2; int diskAccelerator_count = 0; int diskAccelerator_speed = 25 * M / fps; // if less than actual CPU speed means no acceleration @@ -68,7 +68,8 @@ void disk_phase() { disk.phase.count = maxDiskPhaseNum; } - spkr_toggle(); + // TODO: Add track positioning sfx +// spkr_toggle(); // printf("Head Position: p:%d d:%d l:%d: ph:%u)\n", position, direction, lastPosition, disk.phase.count); diff --git a/src/dev/disk/woz.c b/src/dev/disk/woz.c index 2dc9dfb..95f004e 100644 --- a/src/dev/disk/woz.c +++ b/src/dev/disk/woz.c @@ -383,7 +383,7 @@ uint8_t woz_read() { uint16_t usedBytes = woz_trks[track].bytes_used < WOZ_TRACK_BYTE_COUNT ? woz_trks[track].bytes_used : WOZ_TRACK_BYTE_COUNT; if ( usedBytes ) { if ( clkelpased > clkBeforeAdjusting ) { - printf("NEED SYNC : %llu (clkBefRd:%d)\n", clkelpased, clkBeforeSync); +// printf("NEED SYNC : %llu (clkBefRd:%d)\n", clkelpased, clkBeforeSync); clkBeforeSync = 0; bitOffset = (clkelpased >> 2) & 7; trackOffset += clkelpased >> 5;