]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
Adaptation for using pulseaudio
authorc vw <dl1ycf@darc.de>
Sun, 23 May 2021 08:38:41 +0000 (10:38 +0200)
committerc vw <dl1ycf@darc.de>
Sun, 23 May 2021 08:38:41 +0000 (10:38 +0200)
receiver.h

index 200e42da9d18a58c0790e37e2331513c7db59c29..747f2c2fef2f139ae854f26622ede1c01d504c31 100644 (file)
@@ -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;