Codebase list squeezelite / 7441d47
attempt to improve elapsed time measurement for sync Adrian Smith 9 years ago
6 changed file(s) with 9 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
143143 LOG_INFO("track start sample rate: %u replay_gain: %u", output.next_sample_rate, output.next_replay_gain);
144144 output.frames_played = 0;
145145 output.track_started = true;
146 output.track_start_time = gettime_ms();
146147 output.current_sample_rate = output.next_sample_rate;
147148 IF_DSD(
148149 output.dop = output.next_dop;
591591 } else {
592592 output.device_frames = delay;
593593 output.updated = gettime_ms();
594 output.frames_played_dmp = output.frames_played;
594595 }
595596
596597 // process frames
350350 }
351351
352352 output.updated = gettime_ms();
353 output.frames_played_dmp = output.frames_played;
353354
354355 do {
355356 frames = _output_frames(pa_frames_wanted);
101101
102102 output.device_frames = 0;
103103 output.updated = gettime_ms();
104 output.frames_played_dmp = output.frames_played;
104105
105106 _output_frames(FRAME_BLOCK);
106107
597597 LOCK_O;
598598 status.output_full = _buf_used(outputbuf);
599599 status.output_size = outputbuf->size;
600 status.frames_played = output.frames_played;
600 status.frames_played = output.frames_played_dmp;
601601 status.current_sample_rate = output.current_sample_rate;
602602 status.updated = output.updated;
603603 status.device_frames = output.device_frames;
605605 if (output.track_started) {
606606 _sendSTMs = true;
607607 output.track_started = false;
608 status.stream_start = output.updated;
608 status.stream_start = output.track_start_time;
609609 }
610610 #if PORTAUDIO
611611 if (output.pa_reopen) {
1919
2020 // make may define: PORTAUDIO, SELFPIPE, RESAMPLE, RESAMPLE_MP, VISEXPORT, DSD, LINKALL to influence build
2121
22 #define VERSION "v1.6.3"
22 #define VERSION "v1.6.4-test"
2323
2424 // build detection
2525 #if defined(linux)
525525 int (* write_cb)(frames_t out_frames, bool silence, s32_t gainL, s32_t gainR, s32_t cross_gain_in, s32_t cross_gain_out, s32_t **cross_ptr);
526526 unsigned start_frames;
527527 unsigned frames_played;
528 unsigned frames_played_dmp;// frames played at the point delay is measured
528529 unsigned current_sample_rate;
529530 unsigned supported_rates[MAX_SUPPORTED_SAMPLERATES]; // ordered largest first so [0] is max_rate
530531 unsigned default_sample_rate;
531532 bool error_opening;
532533 unsigned device_frames;
533534 u32_t updated;
535 u32_t track_start_time;
534536 u32_t current_replay_gain;
535537 union {
536538 u32_t pause_frames;