Fixed thread creation for portaudio in start_threads.c.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/trunk@81 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2006-01-10 21:24:49 +00:00
parent 03750fab97
commit acafe66c65
2 changed files with 6 additions and 4 deletions

View File

@ -535,10 +535,11 @@ int start_threads_(int *ndevin, int *ndevout, short y1[], short y2[],
alsa_driver_playback.transmitting = Transmitting;
alsa_driver_playback.ndsec = ndsec;
#endif
printf("start threads called\n");
printf("start_threads creating thread for decode1\n");
iret1 = pthread_create(&thread1,NULL,decode1_,&iarg1);
#ifdef USE_ALSA
/* Open audio card. */
printf("Starting alsa routines\n");
ao_alsa_open(&alsa_driver_playback, &rate, SND_PCM_STREAM_PLAYBACK);
ao_alsa_open(&alsa_driver_capture, &rate, SND_PCM_STREAM_CAPTURE);
@ -552,7 +553,8 @@ int start_threads_(int *ndevin, int *ndevout, short y1[], short y2[],
//snd_pcm_start(alsa_driver_playback.audio_fd);
#else
/* snd_pcm_start */
iret1 = pthread_create(&thread1,NULL,a2d_,&iarg1);
iret2 = pthread_create(&thread2,NULL,decode1_,&iarg2);
printf("start_threads creating thread for a2d\n");
iret1 = pthread_create(&thread2,NULL,a2d_,&iarg1);
// iret2 = pthread_create(&thread2,NULL,decode1_,&iarg2);
#endif
}

View File

@ -1,4 +1,4 @@
#------------------------------------------------------------ WSJT
#----------------------------------------------------------- WSJT
from Tkinter import *
from tkFileDialog import *
import Pmw