From: c vw Date: Sun, 23 May 2021 08:38:41 +0000 (+0200) Subject: Adaptation for using pulseaudio X-Git-Url: https://git.rkrishnan.org/listings/vdrive/index.php?a=commitdiff_plain;h=8df2b209f8e9ebf6dc63459529f4a556a06bc66e;p=pihpsdr.git Adaptation for using pulseaudio --- 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;