]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
small correction to ALSA audio module
authorDL1YCF <dl1ycf@darc.de>
Tue, 18 May 2021 13:46:40 +0000 (15:46 +0200)
committerDL1YCF <dl1ycf@darc.de>
Tue, 18 May 2021 13:46:40 +0000 (15:46 +0200)
audio.c

diff --git a/audio.c b/audio.c
index a9bb39cda5298b6d053d7a552fd9a2d0263393f8..ff200fabe6c587d352882dc07309e018ca15879e 100644 (file)
--- a/audio.c
+++ b/audio.c
@@ -320,7 +320,7 @@ g_print("audio_close_input: free mic buffer\n");
 // Note that when sending the buffer, delay "jumps" by the buffer size
 //
 
-int cw_audio_write(float sample){
+int cw_audio_write(RECEIVER *rx, float sample){
   snd_pcm_sframes_t delay;
   long rc;
   float *float_buffer;
@@ -329,8 +329,6 @@ int cw_audio_write(float sample){
   static int count=0;
   int    short_audio_buffer_size;
        
-  RECEIVER *rx = active_receiver;
   g_mutex_lock(&rx->local_audio_mutex);
   if(rx->playback_handle!=NULL && rx->local_audio_buffer!=NULL) {