Discussion:
PulseAudio
Rémy LEFEVRE
2008-08-19 02:45:56 UTC
Permalink
Hello,

I am currently programming in python language my own SIP software
using pjsua. PulseAudio is my sound mixer on my linux distribution
(Ubuntu 8.04). I would know if it's possible to use pjsua with
PulseAudio.

Best regards,

Rémy Lefevre.
Nanang Izzuddin
2008-08-19 12:52:07 UTC
Permalink
Hi Remy,

Currently, PJMEDIA doesn't provide sound device wrapper for
PulseAudio. So effort is needed to make it possible, i.e: creating the
sound device wrapper for PulseAudio.

Regards,
nanang
Post by Rémy LEFEVRE
Hello,
I am currently programming in python language my own SIP software
using pjsua. PulseAudio is my sound mixer on my linux distribution
(Ubuntu 8.04). I would know if it's possible to use pjsua with
PulseAudio.
Best regards,
Rémy Lefevre.
_______________________________________________
Visit our blog: http://blog.pjsip.org
pjsip mailing list
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Rémy LEFEVRE
2008-08-19 15:09:22 UTC
Permalink
Hi Nanang,

Thanks for your answer!

Have you any solution for my software? How can I get round the problem?

Regards,

Rémy.
Post by Nanang Izzuddin
Hi Remy,
Currently, PJMEDIA doesn't provide sound device wrapper for
PulseAudio. So effort is needed to make it possible, i.e: creating the
sound device wrapper for PulseAudio.
Regards,
nanang
Post by Rémy LEFEVRE
Hello,
I am currently programming in python language my own SIP software
using pjsua. PulseAudio is my sound mixer on my linux distribution
(Ubuntu 8.04). I would know if it's possible to use pjsua with
PulseAudio.
Best regards,
Rémy Lefevre.
_______________________________________________
Visit our blog: http://blog.pjsip.org
pjsip mailing list
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
_______________________________________________
Visit our blog: http://blog.pjsip.org
pjsip mailing list
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Benny Prijono
2008-08-19 15:33:13 UTC
Permalink
Post by Rémy LEFEVRE
Hi Nanang,
Thanks for your answer!
Have you any solution for my software? How can I get round the problem?
I think the simplest answer is to download pjsip, build it, run it, and see
how it goes. We use PortAudio for our audio backend, which in turn uses ALSA
and OSS user space library. I'm pretty sure one of these is supported by
PulseAudio. And yeah I use Ubuntu as well, and it works fine.

Cheers
Benny
Rémy LEFEVRE
2008-08-19 16:43:38 UTC
Permalink
I tried to use pjsip. If no sound is played by pulseaudio, I have no
error, but I cannot hear my correspondent and my correspondent cannot
hear me.

If pulseaudio is playing a sound, I get this error:

pjsua_media.c Unable to open sound device: No suitable sound playback
device (PJMEDIA_ENOSNDPLAY) [status=220201]

So, if you have any idea... And to keep pulseaudio is important
because it corrects the bug of flashplayer (flashplayer doesn't stop
the sound even if the animation is finished...) and it's a good sound
mixer to play different sounds simultaneously.

Regards,
Rémy.
Post by Benny Prijono
Post by Rémy LEFEVRE
Hi Nanang,
Thanks for your answer!
Have you any solution for my software? How can I get round the problem?
I think the simplest answer is to download pjsip, build it, run it, and see
how it goes. We use PortAudio for our audio backend, which in turn uses ALSA
and OSS user space library. I'm pretty sure one of these is supported by
PulseAudio. And yeah I use Ubuntu as well, and it works fine.
Cheers
Benny
Benny Prijono
2008-08-20 08:48:12 UTC
Permalink
Post by Rémy LEFEVRE
I tried to use pjsip. If no sound is played by pulseaudio, I have no
error, but I cannot hear my correspondent and my correspondent cannot
hear me.
In that case please follow the audio troubleshooting guidelines in the Wiki.
Post by Rémy LEFEVRE
pjsua_media.c Unable to open sound device: No suitable sound playback
device (PJMEDIA_ENOSNDPLAY) [status=220201]
That sounds like audio sharing issue. There's very little that pjsip can do
here. And isn't pulseaudio supposed to fix this problem?
Post by Rémy LEFEVRE
So, if you have any idea... And to keep pulseaudio is important
because it corrects the bug of flashplayer (flashplayer doesn't stop
the sound even if the animation is finished...) and it's a good sound
mixer to play different sounds simultaneously.
Sure. But with Linux audio architecture changing every couple of hours it's
just not feasible to always keep up with it. And more over we have OSS,
where all audio architecture should provide support for it (by emulation).
So I was hoping that by just supporting OSS (and ALSA), that should cover
all audio architecture out there.

Cheers
Benny



Regards,
Post by Rémy LEFEVRE
Rémy.
Post by Benny Prijono
Post by Rémy LEFEVRE
Hi Nanang,
Thanks for your answer!
Have you any solution for my software? How can I get round the problem?
I think the simplest answer is to download pjsip, build it, run it, and
see
Post by Benny Prijono
how it goes. We use PortAudio for our audio backend, which in turn uses
ALSA
Post by Benny Prijono
and OSS user space library. I'm pretty sure one of these is supported by
PulseAudio. And yeah I use Ubuntu as well, and it works fine.
Cheers
Benny
_______________________________________________
Visit our blog: http://blog.pjsip.org
pjsip mailing list
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Rodrigo Vega
2008-08-20 03:55:38 UTC
Permalink
Hi:

I think it's a good idea to use pulseaudio in PJSIP (even that I don't know
how to do it). Ubuntu hardy heron 8.04 uses pulseaudio as the default sound
mixer and is the tendency to just use pulseaudio, over ubuntu faisty 7.10 it
uses portaudio.

I was using PJSIP over faisty and had no any problems with sound (well, I
think), but when start using ubuntu 8.04 it has been a really mess working
with PJSIP, and the compatibility is almost null.

The only way to use PJSIP with pulseaudio was doing the following thinks:

execute the software suspending pulseaudio.

$pasuspender ./sndtest-i686-pc-linux-gnu

And compiling PJSIP for OSS. Using Alsa doesn't show better results.

This two things makes to have only the sound of PJSIP and no other program.

Reading over the net, I found that portaudio is more cross platform and
works really near of the kernel. Audacity is a software for record and
manipulate audio, and uses portaudio, there is no wrapper for pulseaudio or
something.

Even that I know that VoIP has some of Real Time requirements (and maybe for
this Pulseaudio could not be considered), not trying with pulseaudio could
be something like being not compatible with Ubuntu over its lasts versions.

What I say here it's just my appreciation and is nothing formal.
Post by Benny Prijono
Post by Rémy LEFEVRE
Hi Nanang,
Thanks for your answer!
Have you any solution for my software? How can I get round the problem?
I think the simplest answer is to download pjsip, build it, run it, and see
how it goes. We use PortAudio for our audio backend, which in turn uses ALSA
and OSS user space library. I'm pretty sure one of these is supported by
PulseAudio. And yeah I use Ubuntu as well, and it works fine.
Cheers
Benny
_______________________________________________
Visit our blog: http://blog.pjsip.org
pjsip mailing list
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Benny Prijono
2008-08-20 09:12:05 UTC
Permalink
Post by Rodrigo Vega
I think it's a good idea to use pulseaudio in PJSIP (even that I don't know
how to do it). Ubuntu hardy heron 8.04 uses pulseaudio as the default sound
mixer and is the tendency to just use pulseaudio, over ubuntu faisty 7.10 it
uses portaudio.
Are you sure it uses PortAudio? PortAudio is a client library and it's on
different class than PulseAudio (or ESD, ALSA, etc.).
Post by Rodrigo Vega
I was using PJSIP over faisty and had no any problems with sound (well, I
think), but when start using ubuntu 8.04 it has been a really mess working
with PJSIP, and the compatibility is almost null.
I use Ubuntu 8.04 too. Didn't change any audio settings, and audio just
works.
Post by Rodrigo Vega
execute the software suspending pulseaudio.
$pasuspender ./sndtest-i686-pc-linux-gnu
And compiling PJSIP for OSS. Using Alsa doesn't show better results.
This two things makes to have only the sound of PJSIP and no other program.
Of course pjsip needs to open the microphone device, so I can understand if
that makes the audio opened in non-sharing mode.
Post by Rodrigo Vega
Reading over the net, I found that portaudio is more cross platform and
works really near of the kernel. Audacity is a software for record and
manipulate audio, and uses portaudio, there is no wrapper for pulseaudio or
something.
PortAudio is a client library and it works in user space. It doesn't provide
sound server or driver or anything in the kernel.
Post by Rodrigo Vega
Even that I know that VoIP has some of Real Time requirements (and maybe
for this Pulseaudio could not be considered), not trying with pulseaudio
could be something like being not compatible with Ubuntu over its lasts
versions.
That's just FUD. pjsip audio works fine here in my Hardy, using default
settings (which is Autodetect) or PulseAudio. If you have problems with
sharing etc, then you'll just have to find the settings in your system to
make it work.

-benny
Rémy LEFEVRE
2008-08-21 02:56:53 UTC
Permalink
Hi!

In order to close the subject, I give you the results:
- when no sound is played by pulseaudio (I mean no playback stream),
it's possible to have the sound directly.
- if a sound is played by pulseaudio, the "pasuspender" command has to
be used.

Thanks for your help!

Rémy.
Nanang Izzuddin
2008-08-21 10:04:26 UTC
Permalink
Hi Remy,

Just FYI, I tried pjsua in Ubuntu 8.04 for many times in recent few
months without any problem, using OSS or ALSA and the audio preference
was left on its default: auto detect. Yesterday I tried to change the
audio preference to use PulseAudio, and everything still worked fine.

Regards,
nanang
Post by Rémy LEFEVRE
Hi!
- when no sound is played by pulseaudio (I mean no playback stream),
it's possible to have the sound directly.
- if a sound is played by pulseaudio, the "pasuspender" command has to
be used.
Thanks for your help!
Rémy.
_______________________________________________
Visit our blog: http://blog.pjsip.org
pjsip mailing list
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Continue reading on narkive:
Loading...