liblinphone icon indicating copy to clipboard operation
liblinphone copied to clipboard

Linphonec and Python API return different soundcard results

Open stefan-wegener opened this issue 6 years ago • 0 comments

When using linphonec to show which soundcards are available, I get the following results:

linphonec> soundcard list
0: ALSA: default device
1: ALSA: bcm2835 ALSA
2: PulseAudio: default

When using python with the linphone4raspberry package (I also tried the same with the newest release from http://linphone.org/releases/linphone-python-raspberry/)

>>> import linphone
>>> import logging
>>> def global_state_changed(*args, **kwargs):
...     logging.warning("global_state_changed: %r %r" % (args, kwargs))
...
>>> def registration_state_changed(core, call, state, message):
...     logging.warning("registration_state_changed: " + str(state) + ", " + message)
...
>>> callbacks = {
...     'global_state_changed': global_state_changed,
...     'registration_state_changed': registration_state_changed,
... }
>>> core = linphone.Core.new(callbacks, None, None)
WARNING:root:global_state_changed: (<linphone.Core object at 0x75e57590>, 1, 'Starting up') {}
WARNING:root:global_state_changed: (<linphone.Core object at 0x75e57590>, 2, 'Ready') {}
>>> core.sound_devices
['ALSA: default device', 'ALSA: bcm2835 ALSA']

Why is the pulseaudio device not shown via the Python API? I am also not sure, if the development of the Python package is still actively maintained as the latest release is from 2016... can anyone tell me if using the Python package is deprecated?

stefan-wegener avatar Feb 27 '19 08:02 stefan-wegener