[jitsi-dev] portaudio hotplug wmme


#1

Hi all,

Using jitsi on Windows we have encountered some problems
in the device list shown in option panel combo box:
- duplicated entry (wmme and directsound)
- entry not deleted if device is removed

analyzing the jitsi portoaudio library we noticed the simultaneous
use of two hostapis (wmme and DirectSound) but
portaudio hotplug branch doesn't support hotplug for Wmme.

So, we have introduced hotplug for wmme hostapi too:
as you did with the mac and linux versions, we have patched
the pa_win_wmme.c file in portaudio hotplug branch
to introduce the hotplug handling mechanism

Disabling the use of DirectSound in pa_win_hostapis.c and
leaving only the wmme with hotplug,
we have compiled a new jnportaudio.dll
(according to your specifications in dir "native")
that returns a list of devices without duplication and
consistently updated on the fly.
We tested with the 9676 svn version.

there are possible problems using only WMME ?

if you are interested in this solution, we can contribute with the patch :slight_smile:


#2

Hey Davide,

···

On 06.07.12 10:33, Davide Corda wrote:

Hi all,

Using jitsi on Windows we have encountered some problems
in the device list shown in option panel combo box:
- duplicated entry (wmme and directsound)
- entry not deleted if device is removed

analyzing the jitsi portoaudio library we noticed the simultaneous
use of two hostapis (wmme and DirectSound) but
portaudio hotplug branch doesn't support hotplug for Wmme.

So, we have introduced hotplug for wmme hostapi too:
as you did with the mac and linux versions, we have patched
the pa_win_wmme.c file in portaudio hotplug branch
to introduce the hotplug handling mechanism

Disabling the use of DirectSound in pa_win_hostapis.c and
leaving only the wmme with hotplug,
we have compiled a new jnportaudio.dll
(according to your specifications in dir "native")
that returns a list of devices without duplication and
consistently updated on the fly.
We tested with the 9676 svn version.

there are possible problems using only WMME ?

if you are interested in this solution, we can contribute with the patch :slight_smile:

Now that the administrative part is settled, we'd definitely love to see it.

Cheers,
Emil


#3

ok, here is the patch:
basically, it removes the direct sound hostapi (as the jitsi patch removes wdmks)
and it adds the hotplug functions (ScanDeviceInfos ...) in pa_win_wmme.c

davide

pa_win_wmme.c.patch (21.8 KB)

···

Il 06/07/2012 23:32, Emil Ivov ha scritto:

Hey Davide,

On 06.07.12 10:33, Davide Corda wrote:

Hi all,

Using jitsi on Windows we have encountered some problems
in the device list shown in option panel combo box:
- duplicated entry (wmme and directsound)
- entry not deleted if device is removed

analyzing the jitsi portoaudio library we noticed the simultaneous
use of two hostapis (wmme and DirectSound) but
portaudio hotplug branch doesn't support hotplug for Wmme.

So, we have introduced hotplug for wmme hostapi too:
as you did with the mac and linux versions, we have patched
the pa_win_wmme.c file in portaudio hotplug branch
to introduce the hotplug handling mechanism

Disabling the use of DirectSound in pa_win_hostapis.c and
leaving only the wmme with hotplug,
we have compiled a new jnportaudio.dll
(according to your specifications in dir "native")
  that returns a list of devices without duplication and
consistently updated on the fly.
We tested with the 9676 svn version.

there are possible problems using only WMME ?

if you are interested in this solution, we can contribute with the patch :slight_smile:

Now that the administrative part is settled, we'd definitely love to see it.

Cheers,
Emil