[linux-audio-dev] hearnet improvement

From: Dmitry Baikov <dsbaikov@email-addr-hidden>
Date: Thu Oct 05 2006 - 21:00:36 EEST

Hi!
First of all, thanks for a great program!

I made two patches for it:
1) make hearnet suid and drop privileges right after libpcap initialization.
 I had to move libpcap init code above jack

So, you can use hearnet as regular user.

2) Mutex in jack_process is a very bad thing. Moreover, it seems
there's no need for it, as voice->active field serves as a mutex.
Attached patch removes pthread_mutex.
If you think voice->active assumption is a weak one, the problem can
be solved with a pair of jack_ringbuffers: one for free voices and one
for active.

Regards,

Dmitry.

Received on Fri Oct 6 04:15:02 2006

This archive was generated by hypermail 2.1.8 : Fri Oct 06 2006 - 04:15:02 EEST