From 8df2b209f8e9ebf6dc63459529f4a556a06bc66e Mon Sep 17 00:00:00 2001 From: c vw Date: Sun, 23 May 2021 10:38:41 +0200 Subject: [PATCH] Adaptation for using pulseaudio --- receiver.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/receiver.h b/receiver.h index 200e42d..747f2c2 100644 --- a/receiver.h +++ b/receiver.h @@ -125,18 +125,19 @@ typedef struct _receiver { gint local_audio_buffer_inpt; // pointer in audio ring-buffer gint local_audio_buffer_outpt; // pointer in audio ring-buffer float *local_audio_buffer; + gint local_audio_cw; // flag for latency switching #endif #ifdef ALSA snd_pcm_t *playback_handle; snd_pcm_format_t local_audio_format; - void *local_audio_buffer; // different formats possible + void *local_audio_buffer; // different formats possible, so void* + gint local_audio_cw; // flag for latency switching #endif #ifdef PULSEAUDIO pa_simple *playstream; gboolean output_started; float *local_audio_buffer; #endif - gint local_audio_cw; // flag for latency switching gint local_audio_buffer_size; gint local_audio_buffer_offset; GMutex local_audio_mutex; -- 2.45.2