audio_occupancy_now in delay() needs to be in frames, not bytes. Still no luck...

This commit is contained in:
Jörn Nettingsmeier
2019-02-14 20:50:02 +00:00
parent 3e6ef0194f
commit a238ac54bb
+1 -1
View File
@@ -490,7 +490,7 @@ int jack_delay(long *the_delay) {
// this is the buffer occupancy before any
// subsequent transfer because transfer is blocked
// by the mutex
size_t audio_occupancy_now = jack_ringbuffer_read_space(jackbuf);
size_t audio_occupancy_now = jack_ringbuffer_read_space(jackbuf) / bytes_per_frame;
pthread_mutex_unlock(&buffer_mutex);
int64_t frames_processed_since_latest_latency_check = (delta * 44100) >> 32;