add a volume control mutex to serialise multiple attempts to change the volume

This commit is contained in:
Mike Brady
2019-02-01 21:07:35 +00:00
parent 08e84ece27
commit 46d117b69a
+1 -1
View File
@@ -133,7 +133,7 @@ typedef struct {
int32_t last_seqno_read;
// mutexes and condition variables
pthread_cond_t flowcontrol;
pthread_mutex_t ab_mutex, flush_mutex;
pthread_mutex_t ab_mutex, flush_mutex, volume_control_mutex;
int fix_volume;
uint32_t timestamp_epoch, last_timestamp,
maximum_timestamp_interval; // timestamp_epoch of zero means not initialised, could start at 2