Re: [pulseaudio-discuss] system-wide daemon

2010-02-09 Thread Colin Guthrie
'Twas brillig, and Markus Rechberger at 09/02/10 02:16 did gyre and gimble: On Tue, Feb 9, 2010 at 3:01 AM, olin.pulse@shivers.mail0.org wrote: Bill Cox: While the right way is not system-wide mode, in practice, I find system-wide mode to be very stable and usable on Ubuntu systems that

Re: [pulseaudio-discuss] system-wide daemon

2010-02-09 Thread Markus Rechberger
On Tue, Feb 9, 2010 at 9:38 AM, Colin Guthrie gm...@colin.guthr.ie wrote: 'Twas brillig, and Markus Rechberger at 09/02/10 02:16 did gyre and gimble: On Tue, Feb 9, 2010 at 3:01 AM,  olin.pulse@shivers.mail0.org wrote: Bill Cox: While the right way is not system-wide mode, in practice, I

[pulseaudio-discuss] voulme control

2010-02-09 Thread Gian Lorenzo Meocci
Hi all, I have soume problem to control audio volume. I am using: pa_cvolume a; a.channels = channels; a.values[0] = PA_VOLUME_MUTED; a.values[1] = PA_VOLUME_MUTED; if(pa_cvolume_valid(a)) qDebug() VALID; pa_cvolume_mute(a, channels); but volume remain set NORMAL why??? -- Ing.

Re: [pulseaudio-discuss] voulme control

2010-02-09 Thread Forwind info
Hi Gian, For muting you could use pa_context_set_sink_mute_by_index ? To control volume, you need to set the volume on a pa_cvolume and then set the volume on the device with this struct. something like one sink_info* s (passed in) pa_volume_t new_volume =

Re: [pulseaudio-discuss] system-wide daemon

2010-02-09 Thread Bill Cox
I think this is one area where PulseAudio could be improved, though I can't quite figure out how! Surely, there must be some way to allow specific processes or users to have full sound access, while otherwise sticking to the one-user-at-a-time model. I'm trying to port SBL (another console

Re: [pulseaudio-discuss] system-wide daemon

2010-02-09 Thread Colin Guthrie
'Twas brillig, and Markus Rechberger at 09/02/10 08:43 did gyre and gimble: On Tue, Feb 9, 2010 at 9:38 AM, Colin Guthrie gm...@colin.guthr.ie wrote: 'Twas brillig, and Markus Rechberger at 09/02/10 02:16 did gyre and gimble: On Tue, Feb 9, 2010 at 3:01 AM, olin.pulse@shivers.mail0.org

Re: [pulseaudio-discuss] system-wide daemon

2010-02-09 Thread Markus Rechberger
Can you demonstrate this? In the past when I've tested this behaviour on OSX (it was quite a while ago) it behaves exactly as I described above, and I've literally just now re-tested this on a colleagues Mac (latest version):  1. Enable Fast User Switching (System Settings - Accounts -

Re: [pulseaudio-discuss] system-wide daemon

2010-02-09 Thread Ng Oon-Ee
On Tue, 2010-02-09 at 15:52 +0100, Markus Rechberger wrote: snip 1. default Mac from a company 2. open a terminal and play an mp3 with mplayer as normal user 3. going to another PC and logging in with ssh (as root) and playing an mp3 ) -- works 4. again going to another PC and in order you

Re: [pulseaudio-discuss] system-wide daemon

2010-02-09 Thread Markus Rechberger
On Tue, Feb 9, 2010 at 4:44 PM, Ng Oon-Ee ngoo...@gmail.com wrote: On Tue, 2010-02-09 at 15:52 +0100, Markus Rechberger wrote: snip 1. default Mac from a company 2. open a terminal and play an mp3 with mplayer as normal user 3. going to another PC and logging in with ssh (as root) and playing

Re: [pulseaudio-discuss] system-wide daemon

2010-02-09 Thread Bill Cox
The corking stuff in PA is very cool. I don't think anyone objects to it. But couldn't we quell all the PA stinks! posts by just allowing some processes/groups/users to have constant access to audio? Comparisons to MAC and Windows have been going on for a while, and the PA guys are basically

Re: [pulseaudio-discuss] system-wide daemon

2010-02-09 Thread Markus Rechberger
On Tue, Feb 9, 2010 at 5:17 PM, Bill Cox waywardg...@gmail.com wrote: The corking stuff in PA is very cool.  I don't think anyone objects to it.  But couldn't we quell all the PA stinks! posts by just allowing some processes/groups/users to have constant access to audio? Comparisons to MAC

Re: [pulseaudio-discuss] system-wide daemon

2010-02-09 Thread Fred Frigerio
They way I worked out a similar situation (I am doing an ssh from the box into the box and sometimes from a different box into it) was to setup the PA of the user I ssh as and it IS a user that I would never login directly as to use PA over the network. So as long as someone is logged in then it's

Re: [pulseaudio-discuss] system-wide daemon

2010-02-09 Thread Nix
On 9 Feb 2010, olin verbalised: OK, so that's X11. I cannot figure out what PA's mechanism for this is. I sort of get the sense, from this per-user-login server model that PA has the horrible one-persone/one-computer model of the person at the console is the person using the computer, which

Re: [pulseaudio-discuss] system-wide daemon

2010-02-09 Thread Colin Guthrie
'Twas brillig, and Markus Rechberger at 09/02/10 14:52 did gyre and gimble: Can you demonstrate this? In the past when I've tested this behaviour on OSX (it was quite a while ago) it behaves exactly as I described above, and I've literally just now re-tested this on a colleagues Mac (latest

Re: [pulseaudio-discuss] system-wide daemon

2010-02-09 Thread Colin Guthrie
'Twas brillig, and olin.pulse@shivers.mail0.org at 09/02/10 00:11 did gyre and gimble: OK, so that's X11. I cannot figure out what PA's mechanism for this is. I sort of get the sense, from this per-user-login server model that PA has the horrible one-persone/one-computer model of the person

Re: [pulseaudio-discuss] system-wide daemon

2010-02-09 Thread Markus Rechberger
On Tue, Feb 9, 2010 at 6:54 PM, Colin Guthrie gm...@colin.guthr.ie wrote: 'Twas brillig, and Markus Rechberger at 09/02/10 14:52 did gyre and gimble: Can you demonstrate this? In the past when I've tested this behaviour on OSX (it was quite a while ago) it behaves exactly as I described

Re: [pulseaudio-discuss] system-wide daemon

2010-02-09 Thread Colin Guthrie
'Twas brillig, and Markus Rechberger at 09/02/10 18:25 did gyre and gimble: iTunes *requests* nothing. It simply *adheres* to what it has been told is happening. The same would be true of any application that listens to the PulseAudio generated cork notifications (IOW what iTunes and VLC are

Re: [pulseaudio-discuss] voulme control

2010-02-09 Thread Gian Lorenzo Meocci
Hi, To control volume, you need to set the volume on a pa_cvolume and then set the volume on the device with this struct. something like one sink_info* s (passed in)     pa_volume_t new_volume = pa_sw_volume_from_linear(linear_input);     pa_cvolume dev_vol;     pa_cvolume_set(dev_vol,

Re: [pulseaudio-discuss] voulme control

2010-02-09 Thread Tanu Kaskinen
ti, 2010-02-09 kello 19:55 +0100, Gian Lorenzo Meocci kirjoitti: I am using simple api. This is a problem? You can't do volume control with the simple API. -- Tanu Kaskinen ___ pulseaudio-discuss mailing list pulseaudio-discuss@mail.0pointer.de

Re: [pulseaudio-discuss] system-wide daemon

2010-02-09 Thread Markus Rechberger
On Tue, Feb 9, 2010 at 7:51 PM, Colin Guthrie gm...@colin.guthr.ie wrote: 'Twas brillig, and Markus Rechberger at 09/02/10 18:25 did gyre and gimble: iTunes *requests* nothing. It simply *adheres* to what it has been told is happening. The same would be true of any application that listens to

Re: [pulseaudio-discuss] voulme control

2010-02-09 Thread Gian Lorenzo Meocci
thanks :) On Tue, Feb 9, 2010 at 8:06 PM, Tanu Kaskinen ta...@iki.fi wrote: ti, 2010-02-09 kello 19:55 +0100, Gian Lorenzo Meocci kirjoitti: I am using simple api. This is a problem? You can't do volume control with the simple API. -- Tanu Kaskinen

Re: [pulseaudio-discuss] system-wide daemon

2010-02-09 Thread Colin Guthrie
'Twas brillig, and Markus Rechberger at 09/02/10 19:07 did gyre and gimble: How about a FM USB Transceiver which uses UAC (USB Audio Class) Why the heck should only the person sitting infront of it be allowed to use it The person sitting infront of it could listen to audio while another one

Re: [pulseaudio-discuss] system-wide daemon

2010-02-09 Thread Colin Guthrie
'Twas brillig, and Jeremy Nickurak at 09/02/10 19:24 did gyre and gimble: On Tue, Feb 9, 2010 at 09:41, Tanu Kaskinen ta...@iki.fi mailto:ta...@iki.fi wrote: That's easier said than done. Only one process can have direct access to the sound card at a time. Each user has his own

Re: [pulseaudio-discuss] system-wide daemon

2010-02-09 Thread Michał Sawicz
Dnia 2010-02-09, wto o godzinie 19:31 +, Colin Guthrie pisze: I wouldn't call this overdesign. Quite the opposite. Yes to get this rather bizarre scenario working it would be complex, but to make it work out of the box in this way in PA itself is far from simple. I've already listed the

Re: [pulseaudio-discuss] system-wide daemon

2010-02-09 Thread Colin Guthrie
'Twas brillig, and Michał Sawicz at 09/02/10 20:57 did gyre and gimble: Dnia 2010-02-09, wto o godzinie 19:31 +, Colin Guthrie pisze: I wouldn't call this overdesign. Quite the opposite. Yes to get this rather bizarre scenario working it would be complex, but to make it work out of the

Re: [pulseaudio-discuss] system-wide daemon

2010-02-09 Thread David Henningsson
Colin Guthrie wrote: 'Twas brillig, and Jeremy Nickurak at 09/02/10 19:24 did gyre and gimble: This whole thing has been discussed to death, and I really don't feel like being drawn into the whole thing again. From what I've read here, I'm afraid it's going to keep coming up until we solve it

Re: [pulseaudio-discuss] system-wide daemon

2010-02-09 Thread Colin Guthrie
'Twas brillig, and David Henningsson at 09/02/10 21:52 did gyre and gimble: I wrote down a few use cases here, I'm sure there are more: https://wiki.ubuntu.com/BluePrints/multiuser-soundcards-pulseaudio For user Foo, the sound card sounds like it's dedicated for Foo. If this is the case the a

[pulseaudio-discuss] Behavior of pa_threaded_mainloop_wait ()

2010-02-09 Thread Tristin Celestin
I have a stream state change callback that fires a signal when the stream is PA_STREAM_READY, PA_STREAM_FAILED, or PA_STREAM_TERMINATED When trying to get a ready stream state in pulseaudio, I first wrote this. This hangs     do {  stream_state = pa_stream_get_state (device.stream);

Re: [pulseaudio-discuss] system-wide daemon

2010-02-09 Thread David Henningsson
Colin Guthrie wrote: 'Twas brillig, and David Henningsson at 09/02/10 21:52 did gyre and gimble: I wrote down a few use cases here, I'm sure there are more: https://wiki.ubuntu.com/BluePrints/multiuser-soundcards-pulseaudio For user Foo, the sound card sounds like it's dedicated for Foo. If

Re: [pulseaudio-discuss] system-wide daemon

2010-02-09 Thread Markus Rechberger
On Wed, Feb 10, 2010 at 7:14 AM, David Henningsson launchpad@epost.diwic.se wrote: Colin Guthrie wrote: 'Twas brillig, and David Henningsson at 09/02/10 21:52 did gyre and gimble: I wrote down a few use cases here, I'm sure there are more: