Re: [pulseaudio-discuss] Example using async API

2009-10-14 Thread Colin Guthrie
'Twas brillig, and Nix at 14/10/09 00:24 did gyre and gimble: That requires me to be permanently present on IRC. I'm stuck commuting and have to sleep so this is impractical. I'm on IRC 24/7 and yet I do both of those things too. It's not impractical, but I don't think it should be seen as a

Re: [pulseaudio-discuss] Example using async API

2009-10-14 Thread Peter Onion
On Wed, 2009-10-14 at 00:24 +0100, Nix wrote: A shame. It's fine software, better than any other desktop sound system I've ever used, but it seems it's not safe to use unless I'm in the right club or have infinite amounts of free time to use to follow everything you do in micrometric

Re: [pulseaudio-discuss] Example using async API

2009-10-12 Thread Lennart Poettering
On Fri, 09.10.09 23:14, Nix (n...@esperi.org.uk) wrote: On 7 Oct 2009, Lennart Poettering said: Security updates is the job of distributions. If we encounter a security issue I contact the packagers I know and tell them which patch to backport. The problem here is that you cannot know

Re: [pulseaudio-discuss] Example using async API

2009-10-07 Thread Lennart Poettering
On Wed, 07.10.09 19:01, Jeremy Visser (jer...@visser.name) wrote: On Tue, 2009-10-06 at 00:37 +0200, Lennart Poettering wrote: If you are a user then you should use tha PA version that is shipped with your distro. If you want a newer version, then upgrade your distro. If you are a

Re: [pulseaudio-discuss] Example using async API

2009-10-05 Thread Lennart Poettering
On Fri, 02.10.09 18:30, Peter Onion (peter.on...@btinternet.com) wrote: It seems a bit fussy about how much data you write with each pa_stream_write, but it might be my code that is generating the samples that is wrong! It's up to you how much your write. However, it is definitely a good idea

Re: [pulseaudio-discuss] Example using async API

2009-10-05 Thread Lennart Poettering
On Fri, 02.10.09 21:24, Peter Onion (peter.on...@btinternet.com) wrote: On Fri, 2009-10-02 at 18:30 +0100, Peter Onion wrote: Next thing is to try and control the sound with some glade widgets to see it the latency is going to be a problem doing things this way. Things are looking

Re: [pulseaudio-discuss] Example using async API

2009-10-05 Thread Lennart Poettering
On Sun, 04.10.09 09:34, Peter Onion (peter.on...@btinternet.com) wrote: On Fri, 2009-10-02 at 23:40 +0100, Colin Guthrie wrote: 'Twas brillig, and Peter Onion at 02/10/09 21:24 did gyre and gimble: It was ok when pulseaudio was using ~8% of one core but it seems to have jumped up to

Re: [pulseaudio-discuss] Example using async API

2009-10-05 Thread Lennart Poettering
On Sun, 04.10.09 15:44, Peter Onion (peter.on...@btinternet.com) wrote: So, what are the steps to upgrade my pulseaudio to the latest version ? I assume I can't just remove the pulseaudio rpm as that will break dependencies ? PA is pretty tightly integrated into the system. Consider it

Re: [pulseaudio-discuss] Example using async API

2009-10-05 Thread Peter Onion
On Mon, 2009-10-05 at 23:04 +0200, Lennart Poettering wrote: On Sun, 04.10.09 15:44, Peter Onion (peter.on...@btinternet.com) wrote: So, what are the steps to upgrade my pulseaudio to the latest version ? I assume I can't just remove the pulseaudio rpm as that will break dependencies

Re: [pulseaudio-discuss] Example using async API

2009-10-05 Thread Lennart Poettering
On Mon, 05.10.09 22:38, Peter Onion (peter.on...@btinternet.com) wrote: Upgrading PA alone would also require you to update the kernel, udev and other things. Lennart I didn't read this until I had sent my previous reply. Are you saying it's actually impossible to upgrade

Re: [pulseaudio-discuss] Example using async API

2009-10-05 Thread Patrick Shirkey
On 10/06/2009 08:30 AM, Peter Onion wrote: On Mon, 2009-10-05 at 23:01 +0200, Lennart Poettering wrote: Uh. F10. That's quite old. PA is very much in flux, I'd not suggest users using old versions like that. If you ask me, especially developers should live on the bleeding

Re: [pulseaudio-discuss] Example using async API

2009-10-05 Thread Patrick Shirkey
On 10/06/2009 08:48 AM, Lennart Poettering wrote: On Mon, 05.10.09 22:38, Peter Onion (peter.on...@btinternet.com) wrote: Upgrading PA alone would also require you to update the kernel, udev and other things. Lennart I didn't read this until I had sent my previous reply. Are

Re: [pulseaudio-discuss] Example using async API

2009-10-05 Thread Lennart Poettering
On Tue, 06.10.09 06:49, Ng Oon-Ee (ngoo...@gmail.com) wrote: On Tue, 2009-10-06 at 00:37 +0200, Lennart Poettering wrote: If you are a user then you should use tha PA version that is shipped with your distro. If you want a newer version, then upgrade your distro. If you are a developer

Re: [pulseaudio-discuss] Example using async API

2009-10-05 Thread Patrick Shirkey
On 10/06/2009 09:49 AM, Ng Oon-Ee wrote: On Tue, 2009-10-06 at 00:37 +0200, Lennart Poettering wrote: If you are a user then you should use tha PA version that is shipped with your distro. If you want a newer version, then upgrade your distro. If you are a developer who writes third party

Re: [pulseaudio-discuss] Example using async API

2009-10-05 Thread Lennart Poettering
On Tue, 06.10.09 09:59, Patrick Shirkey (pshir...@boosthardware.com) wrote: Alternatively there could be a more explicit set of steps provided for running PA from the build dir recommended specifically for devs/interested parties to work with... As mentioned: $ ./bootstrap.sh

Re: [pulseaudio-discuss] Example using async API

2009-10-04 Thread Peter Onion
On Fri, 2009-10-02 at 23:40 +0100, Colin Guthrie wrote: 'Twas brillig, and Peter Onion at 02/10/09 21:24 did gyre and gimble: It was ok when pulseaudio was using ~8% of one core but it seems to have jumped up to 20%, dropouts are happening every couple of seconds and these messages are

Re: [pulseaudio-discuss] Example using async API

2009-10-04 Thread Patrick Shirkey
On 10/04/2009 07:34 PM, Peter Onion wrote: On Fri, 2009-10-02 at 23:40 +0100, Colin Guthrie wrote: 'Twas brillig, and Peter Onion at 02/10/09 21:24 did gyre and gimble: It was ok when pulseaudio was using ~8% of one core but it seems to have jumped up to 20%, dropouts are happening

Re: [pulseaudio-discuss] Example using async API

2009-10-04 Thread Patrick Shirkey
On 10/05/2009 01:02 AM, Peter Onion wrote: On Sun, 2009-10-04 at 21:50 +1100, Patrick Shirkey wrote: Do the upgrade to F11 and then you can also compile the latest git as F11 is only upto 0.9.15 and now PA is upto 0.9.18. OK, this now coming from an upgraded to F11 box... However

Re: [pulseaudio-discuss] Example using async API

2009-10-04 Thread Peter Onion
On Mon, 2009-10-05 at 01:17 +1100, Patrick Shirkey wrote: Did you check all the output levels are unmuted for your card? Try running alsamixer from the commandline. FIxed. Output was being sent to the sound device on my Radeon graphics card (which I assume comes out the HDMI connector ?)

Re: [pulseaudio-discuss] Example using async API

2009-10-02 Thread Lennart Poettering
On Wed, 30.09.09 21:18, Peter Onion (peter.on...@btinternet.com) wrote: I've been looking at the tests in the source distribution to get some more ideas on how things fit together. BUT, I still can't figure out how to use the threaded mainloop. There are some examples of using bits of it,

Re: [pulseaudio-discuss] Example using async API

2009-10-02 Thread Lennart Poettering
On Thu, 01.10.09 23:29, Peter Onion (peter.on...@btinternet.com) wrote: On Wed, 2009-09-30 at 21:18 +0100, Peter Onion wrote: I've been looking at the tests in the source distribution to get some more ideas on how things fit together. BUT, I still can't figure out how to use the

Re: [pulseaudio-discuss] Example using async API

2009-10-02 Thread Peter Onion
On Fri, 2009-10-02 at 10:18 +0200, Lennart Poettering wrote: A very brief intro how to use the threaded mainloop you may find in the doxygen docs. In case you haven't had a look yet: http://0pointer.de/lennart/projects/pulseaudio/doxygen/threaded_mainloop.html That was one of the first

Re: [pulseaudio-discuss] Example using async API

2009-10-02 Thread Peter Onion
On Fri, 2009-10-02 at 18:30 +0100, Peter Onion wrote: Next thing is to try and control the sound with some glade widgets to see it the latency is going to be a problem doing things this way. Things are looking good :-) Latency is OK and only a very occasional dropout. It was ok when

Re: [pulseaudio-discuss] Example using async API

2009-10-02 Thread Colin Guthrie
'Twas brillig, and Peter Onion at 02/10/09 21:24 did gyre and gimble: It was ok when pulseaudio was using ~8% of one core but it seems to have jumped up to 20%, dropouts are happening every couple of seconds and these messages are appearing in /var/log/messages Oct 2 21:20:47 NewHP

Re: [pulseaudio-discuss] Example using async API

2009-09-30 Thread Peter Onion
I've been looking at the tests in the source distribution to get some more ideas on how things fit together. BUT, I still can't figure out how to use the threaded mainloop. There are some examples of using bits of it, but at the moment I can't see how to put them together in a coherent way.

Re: [pulseaudio-discuss] Example using async API

2009-09-29 Thread Lennart Poettering
On Tue, 29.09.09 20:45, Peter Onion (peter.on...@btinternet.com) wrote: Has anyone got some example code which uses the GLIB Main Loop Bindings ? I was trying to get some of my old computer emulation applications (*) working with PA about a year ago, but at the time I just side stepped

Re: [pulseaudio-discuss] Example using async API

2009-09-29 Thread Peter Onion
On Tue, 2009-09-29 at 22:07 +0200, Lennart Poettering wrote: On Tue, 29.09.09 20:45, Peter Onion (peter.on...@btinternet.com) wrote: Has anyone got some example code which uses the GLIB Main Loop Bindings ? So I'm looking for an example of using pa with a gtk+ (libglade)

Re: [pulseaudio-discuss] Example using async API

2009-09-29 Thread Peter Onion
On Tue, 2009-09-29 at 22:44 +0200, Lennart Poettering wrote: If you write output applications it is not recommended to use the glib glue coe because you don't want to run the audio IO stuff in the same event loop as the slow X stuff. The glib glue code is only useful for control