diff --git a/start_portaudio.c b/start_portaudio.c index 1e83c55f0..d1f439746 100644 --- a/start_portaudio.c +++ b/start_portaudio.c @@ -20,11 +20,11 @@ int start_threads_(int *ndevin, int *ndevout, short y1[], short y2[], int iret1,iret2,iret3; int iarg1=1, iarg2=2, iarg3=3; - /* snd_pcm_start */ - // printf("start_threads: creating thread for a2d\n"); - iret1 = pthread_create(&thread1,NULL,a2d_,&iarg1); - // printf("start_threads: creating thread for decode1_\n"); - iret2 = pthread_create(&thread2,NULL,decode1_,&iarg2); - // printf("start_threads: creating thread for recvpkt_\n"); - iret3 = pthread_create(&thread3,NULL,recvpkt_,&iarg3); + iret1 = pthread_create(&thread1,NULL, + (void *)a2d_,&iarg1); + iret2 = pthread_create(&thread2,NULL, + (void *)decode1_,&iarg2); + iret3 = pthread_create(&thread3,NULL, + (void *)recvpkt_,&iarg3); + return(iret1 | iret2 | iret3); }