diff -r 8dea68398052 hearnet.cpp --- a/hearnet.cpp Thu Oct 05 21:21:15 2006 +0400 +++ b/hearnet.cpp Thu Oct 05 21:55:43 2006 +0400 @@ -75,8 +75,6 @@ int process (jack_nframes_t nframes, voi { jack_default_audio_sample_t *out = (jack_default_audio_sample_t *) jack_port_get_buffer (output_port, nframes); - pthread_mutex_lock(&mutex); - memset(out, 0, sizeof(jack_default_audio_sample_t)*nframes); for (int index = 0; index != MAX_VOICES; index++) @@ -114,8 +112,6 @@ int process (jack_nframes_t nframes, voi } } - pthread_mutex_unlock(&mutex); - return 0; }/*}}}*/ /** jack callback to set sample rate */ @@ -138,8 +134,6 @@ void shutdown(void *arg)/*{{{*/ /** packet handler called by pcap_dispatch in main() */ void packet_handler(u_char * args, const struct pcap_pkthdr *pcap_hdr, const u_char * p)/*{{{*/ { - pthread_mutex_lock(&mutex); - voice* new_voice = get_free_voice(); if (new_voice) { @@ -155,8 +149,6 @@ void packet_handler(u_char * args, const new_voice->attacklength = (rand()%20 + 1) / 1000.0f; // 10ms new_voice->active = true; } - pthread_mutex_unlock(&mutex); - }/*}}}*/ void usage(void)/*{{{*/