diff options
author | Mike Brady <mikebrady@eircom.net> | 2019-01-08 17:28:38 +0000 |
---|---|---|
committer | Mike Brady <mikebrady@eircom.net> | 2019-01-08 17:28:38 +0000 |
commit | e9623faa44b2e652e2e94665c7128ee1dfd6cd02 (patch) | |
tree | 5f06fe013f0e696f503e9aafd057ce8494b7dd9c /player.c | |
parent | 56f4b124bd5110dadd00a8bfe7adab28cb82f425 (diff) |
Go for a 0.250 second buffer length.
Diffstat (limited to 'player.c')
-rw-r--r-- | player.c | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -4,7 +4,7 @@ * All rights reserved. * * Modifications for audio synchronisation - * and related work, copyright (c) Mike Brady 2014 -- 2018 + * and related work, copyright (c) Mike Brady 2014 -- 2019 * All rights reserved. * * Permission is hereby granted, free of charge, to any person @@ -624,6 +624,16 @@ int32_t rand_in_range(int32_t exclusive_range_limit) { static inline void process_sample(int32_t sample, char **outp, enum sps_format_t format, int volume, int dither, rtsp_conn_info *conn) { + /* + { + static int old_volume = 0; + if (volume != old_volume) { + debug(1,"Volume is now %d.",volume); + old_volume = volume; + } + } + */ + int64_t hyper_sample = sample; int result = 0; @@ -1554,7 +1564,7 @@ void *player_thread_func(void *arg) { conn->dac_buffer_queue_minimum_length = (int64_t)( config.audio_backend_buffer_interpolation_threshold_in_seconds * config.output_rate); - debug(1, "dac_buffer_queue_minimum_length is %" PRId64 " frames.", + debug(3, "dac_buffer_queue_minimum_length is %" PRId64 " frames.", conn->dac_buffer_queue_minimum_length); conn->session_corrections = 0; @@ -2220,9 +2230,6 @@ void *player_thread_func(void *arg) { } } - if (config.output->preflight) - config.output->preflight(conn->outbuf,play_samples); - if ((current_delay < conn->dac_buffer_queue_minimum_length) || (config.packet_stuffing == ST_basic)) { play_samples = |