- Little more cleanup, still not fully working

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/trunk@176 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Diane Bruce 2006-04-18 01:48:38 +00:00
parent 464498eb53
commit 688fd0c1a3

View File

@ -72,14 +72,14 @@ process (jack_nframes_t nframes, void *arg)
int i; int i;
if (ts == JackTransportRolling) { if (ts == JackTransportRolling) {
if (client_state == Init) if (client_state == Init)
client_state = Run; client_state = Run;
printf("ZZZ nframes = %d\n", nframes);
in = jack_port_get_buffer (input_port, nframes); in = jack_port_get_buffer (input_port, nframes);
/* First hack */ /* First hack */
memcpy (rcv_buf, in, AUDIOBUFSIZE); if (nframes != 0) {
jack_read(); memcpy (rcv_buf, in, nframes);
jack_read();
}
#if 0 #if 0
out = jack_port_get_buffer (output_port, nframes); out = jack_port_get_buffer (output_port, nframes);
@ -280,20 +280,16 @@ start_threads_(int *ndevin, int *ndevout, short y1[], short y2[],
iret2 = pthread_create(&thread2, NULL, iret2 = pthread_create(&thread2, NULL,
(void *(*)(void *))decode1_,&iarg2); (void *(*)(void *))decode1_,&iarg2);
/* keep running until the transport stops */ /* keep running until the transport stops */
#if 0
while (client_state != Exit) {
sleep (1);
}
jack_client_close (client); jack_client_close (client);
#endif
return(0); return(0);
} }
/* /*
* oss_loop * jack_read
* *
* inputs - int pointer NOT USED * inputs - none
* output - none * output - none
* side effects - * side effects -
*/ */