Re: [pulseaudio-discuss] Media Keys on Bluetooth headsets?

2009-12-28 Thread Ng Oon-Ee
On Mon, 2009-12-28 at 01:28 +, Matthew W. S. Bell wrote:
 On Mon, 2009-12-28 at 08:08 +0800, Ng Oon-Ee wrote:
  Hi, I've been using my Jabra Halo stereo (A2DP) headset with pulse and
  gnome-bluetooth for several months now, works great.
  
  A question though, does pulseaudio or gnome-bluetooth (not sure who'd
  be
  responsible for this) support the media keys (next track, previous
  track) on my headset, or on any bluetooth headset? I'd assume these
  keys
  are standard across headsets, since they all work on the same devices
  (bluetooth mp3 or cellphones etc.)
 
 The Linux kernel input layer is responsible for handling Bluetooth
 AVRCP. Whenever, an AVRCP device is connected an appropriate input event
 device should appear; one can use 'lsinput' to list input devices.
 
 I believe that hald-addon-input then processes these events and emits
 DBUS 'ButtonPressed' events. In the case of GNOME, I believe these are
 then picked up by gnome-settings-daemon, and emitted as X key-presses.
 One can use 'dbus-monitor --session' to see the events.
 
 Matthew

Thanks for your response, Matthew.

First off, I don't have lsinput anywhere on my system, I suppose you
mean 'lshal' instead? Any idea what I should be looking for there?

And I do have hald-addon-input and gnome-settings-daemon running, but
dbus-monitor --session doesn't show anything (not even when I connect
the BT headset, which is weird and perhaps indicates something wrong
with my system?)

Ideas are appreciated.

___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


[pulseaudio-discuss] paplay - sound roles?

2009-12-28 Thread Ng Oon-Ee
Is there a way to specify a sound to be a 'system sound' as defined by
System Sounds on pavucontrol, when played by paplay?

If so, then programs such as pidgin which allow playing event
notifications through a command would be useable without modification.

___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


[pulseaudio-discuss] M-Audio FastTrack Pro

2009-12-28 Thread David Kågedal
I created a mixer profile for my M-Audio FastTrack Pro USB card that
allows both stereo output channels to be used.

I should probably add a profile that allows the input channels to appear
as two mono sources, as well as the current stereo source, but I don't
have a microphone around to test it (and I'm lazy).

This was simple, since it is similar to the Native Instruments Audio 4
DJ profile file that was included, but not identical (only two channels
input e.g.)

I wonder, shouldn't ALSA/PulseAudio be able to somehow guess the profile
so that the two stereo channels appear automatically?

And another thing: The sinks appear as FastTrack_Pro ..., with an
underscore instead of a space for some reason.

I created a file /etc/udev/rules.d/91-pulseaudio.rules with the
following contents:

SUBSYSTEM!=sound, GOTO=pulseaudio_x_end
ACTION!=change, GOTO=pulseaudio_x_end
KERNEL!=card*, GOTO=pulseaudio_x_end

SUBSYSTEMS==usb, ATTRS{idVendor}==0763, ATTRS{idProduct}==2012, 
ENV{PULSE_PROFILE_SET}=maudio-fasttrack-pro.conf

LABEL=pulseaudio_x_end

and the attached file maudio-fasttrack-pro.conf was placed in
/usr/share/pulseaudio/alsa-mixer/profile-sets/

# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2.1 of the
# License, or (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.

; M-Audio FastTrack Pro
;
; This card has one duplex stereo channel called A and an additional
; stereo output channel called B.
;
; We knowingly only define a subset of the theoretically possible
; mapping combinations as profiles here.
;
; See default.conf for an explanation on the directives used here.

[General]
auto-profiles = no

[Mapping analog-stereo-a-output]
description = Analog Stereo Channel A
device-strings = hw:%f,0,0
channel-map = left,right
direction = output

[Mapping analog-stereo-a-input]
description = Analog Stereo Channel A
device-strings = hw:%f,0,0
channel-map = left,right
direction = input

[Mapping analog-stereo-b-output]
description = Analog Stereo Channel B
device-strings = hw:%f,1,0
channel-map = left,right
direction = output

[Profile output:analog-stereo-all+input:analog-stereo-all]
description = Analog Stereo Duplex Channel A, Analog Stereo output Channel B
output-mappings = analog-stereo-a-output  analog-stereo-b-output
input-mappings = analog-stereo-a-input
priority = 100
skip-probe = yes

[Profile output:analog-stereo-a-output+input:analog-stereo-a-input]
description = Analog Stereo Duplex Channel A
output-mappings = analog-stereo-a-output
input-mappings = analog-stereo-a-input
priority = 40
skip-probe = yes

[Profile output:analog-stereo-b+input:analog-stereo-b]
description = Analog Stereo Output Channel B
output-mappings = analog-stereo-b-output
input-mappings =
priority = 50
skip-probe = yes

[Profile output:analog-stereo-a]
description = Analog Stereo Output Channel A
output-mappings = analog-stereo-a-output
priority = 5
skip-probe = yes

[Profile output:analog-stereo-b]
description = Analog Stereo Output Channel B
output-mappings = analog-stereo-b-output
priority = 6
skip-probe = yes

[Profile input:analog-stereo-a]
description = Analog Stereo Input Channel A
input-mappings = analog-stereo-a-input
priority = 2
skip-probe = yes

-- 
David Kågedal
___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] paplay - sound roles?

2009-12-28 Thread Tomasz Torcz
On Mon, Dec 28, 2009 at 05:41:32PM +0800, Ng Oon-Ee wrote:
 Is there a way to specify a sound to be a 'system sound' as defined by
 System Sounds on pavucontrol, when played by paplay?

  Yes, by exporting PULSE_PROP_MEDIA_ROLE variable. See the bottom of
http://pulseaudio.org/wiki/ApplicationProperties

-- 
Tomasz TorczTo co nierealne -- tutaj jest normalne.
xmpp: zdzich...@chrome.pl  Ziomale na życie mają tu patenty specjalne.

___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


[pulseaudio-discuss] Audio routing on Bluetooth handsfree unit

2009-12-28 Thread Burkhard Stubert
Hi chaps,

I am trying to build a demo for a handsfree unit (HFU) in a car. The HFU
connects via Bluetooth to a mobile phone (the audio gateway or AG in
Bluetooth speak). I could then play music on the mobile phone and hear it on
the car's speakers. The HFU would also take over the phone functionality. I
could talk over a microphone in the HFU and hear the other person talking
over the car speakers.

The HFU will run on Linux. I use pulseaudio v0.9.19 as a mediator between my
app and the Bluetooth audio device.

Does pulseaudio support this scenario, where the Bluetooth device acts as a
source?

Actually, I think that the Bluetooth device would have to act both as a
source and a sink (the caller and the callee). Right?

Page http://pulseaudio.org/wiki/Modules#module-bluetooth-sink indicates that
Bluetooth sources will only be supported in the future. Are they supported
in v0.9.20 or newer?

Thanks,
Burkhard
___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] Audio routing on Bluetooth handsfree unit

2009-12-28 Thread Burkhard Stubert
Colin,

It seems that v0.9.21 supports Bluetooth sources. module-bluetooth-device.c
states that quite clearly in the PA_MODULE_* definitions. So, I am currently
trying to build v0.9.21.

Thanks,
Burkhard


2009/12/28 Colin Guthrie gm...@colin.guthr.ie

 'Twas brillig, and Burkhard Stubert at 28/12/09 12:08 did gyre and gimble:
  The HFU will run on Linux. I use pulseaudio v0.9.19 as a mediator
  between my app and the Bluetooth audio device.

 For reference, please use 0.9.21 - 0.9.17 through 0.9.21 are all
 basically bugfixes for 0.9.16, so it's probably best to use .21 if you can.

  Does pulseaudio support this scenario, where the Bluetooth device acts
  as a source?

 I believe it's a matter of writing an appropriate service description
 for bluez so that it is advertised correctly. I can't remember what has
 been done/said about this before and as I've not tried myself I'm just
 going on vague memory.

 I think it's possible but hopefully someone can give a definitive answer.

 Col

 --

 Colin Guthrie
 gmane(at)colin.guthr.ie
 http://colin.guthr.ie/

 Day Job:
  Tribalogic Limited [http://www.tribalogic.net/]
 Open Source:
  Mandriva Linux Contributor [http://www.mandriva.com/]
  PulseAudio Hacker [http://www.pulseaudio.org/]
  Trac Hacker [http://trac.edgewall.org/]

 ___
 pulseaudio-discuss mailing list
 pulseaudio-discuss@mail.0pointer.de
 https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss

___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] paplay - sound roles?

2009-12-28 Thread Lennart Poettering
On Mon, 28.12.09 17:41, Ng Oon-Ee (ngoo...@gmail.com) wrote:

 Is there a way to specify a sound to be a 'system sound' as defined by
 System Sounds on pavucontrol, when played by paplay?
 
 If so, then programs such as pidgin which allow playing event
 notifications through a command would be useable without modification.

paplay --property=media.role=event ...

Lennart

-- 
Lennart PoetteringRed Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/   GnuPG 0x1A015CC4
___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


[pulseaudio-discuss] Conditional up/down mixing

2009-12-28 Thread Colin Guthrie
Hi,

I could have sworn this was asked about on the ML recently but perhaps
it was just IRC as I cannot for the life of me find the message :s

Anyway, someone was asking about their 5.1 capable card and how they
would prefer that stereo streams were not upmixed as their sound
receiver does a better job of upmixing (e.g. Dolby ProLogic or similar
gubbins).

I was thinking about this today and I think this is a pretty common
setup. I think I may actually have need to do that in my own setup now
I've finally gotten around to configuring it up in a vaguely working way!

So what I was thinking was some way to defining the mixing profile (via
simple module argument) that simply lists (comma separated) the channel
counts that are permitted for remixing.

The remix = yes/no still works too but inverses the logic of the
remix_profile argument.

e.g. remix=yes remix_profile=2 means it will *not* remix 2 channel
sound to the sinks channel count.

whereas remix=no remix_profile=1,3,4,5,6,7,8,9,10  means much the
same thing, but only as far as 10 channels.

Obviously remix_profile is fully optional and remix= works as currently
if specified on it's own.

I've not analised how the code works to see how much hassle this would
be to implement, but if this sounds like a vaguely sensible idea, I'll
look at cooking up a patch.

Col


-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
  Mandriva Linux Contributor [http://www.mandriva.com/]
  PulseAudio Hacker [http://www.pulseaudio.org/]
  Trac Hacker [http://trac.edgewall.org/]

___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] Audio routing on Bluetooth handsfree unit

2009-12-28 Thread Lennart Poettering
On Mon, 28.12.09 15:19, Burkhard Stubert (burkhard.stub...@googlemail.com) 
wrote:

 Colin,
 
 It seems that v0.9.21 supports Bluetooth sources. module-bluetooth-device.c
 states that quite clearly in the PA_MODULE_* definitions. So, I am currently
 trying to build v0.9.21.

Kinda.

PA cannot act as an HFP/HSP headset at this time, however can connect to
them.

PA can make use of A2DP headphones and act as them.

Lennart

-- 
Lennart PoetteringRed Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/   GnuPG 0x1A015CC4
___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] Media Keys on Bluetooth headsets?

2009-12-28 Thread Lennart Poettering
On Mon, 28.12.09 08:08, Ng Oon-Ee (ngoo...@gmail.com) wrote:

 Hi, I've been using my Jabra Halo stereo (A2DP) headset with pulse and
 gnome-bluetooth for several months now, works great.
 
 A question though, does pulseaudio or gnome-bluetooth (not sure who'd be
 responsible for this) support the media keys (next track, previous
 track) on my headset, or on any bluetooth headset? I'd assume these keys
 are standard across headsets, since they all work on the same devices
 (bluetooth mp3 or cellphones etc.)

bluetoothd forwards AVRCP key events to user applications by creating
a virtual input device (uinput) for it in the kernel. Applications
that handle /dev/input devices properly (such as X) should be able to
make use of it without any modification.

Note however that there is currently no way in X to map keypresses to
the devices they originate from. That means that volume change
keypresses do not necesarily change the volume of the device they were
triggered from.

Lennart

-- 
Lennart PoetteringRed Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/   GnuPG 0x1A015CC4
___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] paplay - sound roles?

2009-12-28 Thread Ng Oon-Ee
On Mon, 2009-12-28 at 15:45 +0100, Lennart Poettering wrote:
 On Mon, 28.12.09 17:41, Ng Oon-Ee (ngoo...@gmail.com) wrote:
 
  Is there a way to specify a sound to be a 'system sound' as defined by
  System Sounds on pavucontrol, when played by paplay?
  
  If so, then programs such as pidgin which allow playing event
  notifications through a command would be useable without modification.
 
 paplay --property=media.role=event ...
 
 Lennart
 
Thanks Lennart. man paplay doesn't show that syntax... is it a
relatively recent addition?

And I can confirm that works fine with pidgin, should I add it to the
wiki? Considering once in a while the question how do I adjust my
pidgin volume when the sounds are so damn short keeps popping up again
and again.

___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] Audio routing on Bluetooth handsfree unit

2009-12-28 Thread Burkhard Stubert
OK, that clarifies it. And, that's what my experiments have shown ;-)

Thanks,
Burkhard

2009/12/28 Lennart Poettering lenn...@poettering.net

 On Mon, 28.12.09 16:06, Burkhard Stubert (burkhard.stub...@googlemail.com)
 wrote:

  Hi Lennart,
 
  If I understand you right, my handsfree unit could only receive HFP/HSP
  audio from the mobile phone. The handsfree unit could not send any audio
 to
  the mobile. Right?

 Uh?

 At this time PA _can_connect_to_ HFP/HSP devices, such as a BT
 telephony headset. However it _cannot_act_as_ an HFP/HSP device, and
 hence cannot take the role of a BT telephony headset.

 Or the other way round: it can take the role of a mobile phone, but it
 cannot be connected to a mobile phone for HFP/HSP telephony.

 However for A2DP audio it can take the role of both sides.

 Lennart

 --
 Lennart PoetteringRed Hat, Inc.
 lennart [at] poettering [dot] net
 http://0pointer.net/lennart/   GnuPG 0x1A015CC4
 ___
 pulseaudio-discuss mailing list
 pulseaudio-discuss@mail.0pointer.de
 https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss

___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] Two outputs

2009-12-28 Thread Josu Lazkano
Thanks for respond, I add this on the file:

[Profile
output:analog-stereo+output:iec958-stereo+output:hdmi-stereo+input:analog-stereo
]
description = Personalizado
output-mappings = analog-stereo iec958-stereo hdmi-stereo
input-mappings = analog-stereo

Here is all the config: http://pastebin.com/f7349bfdc

I reboot, but there is no Personalizado on the profile.

Is there other way?

I will search for more, thank for all and best regards.

2009/12/27 Tanu Kaskinen ta...@iki.fi

 la, 2009-12-26 kello 22:54 +0100, Josu Lazkano kirjoitti:
  I working on this, but is so difficult for me.
 
  I uncomment this line on default.pa:
 
  set-default-sink output

 Here's a small misunderstanding. You should
 edit /usr/share/pulseaudio/alsa-mixer/profile-sets/default.conf, not
 default.pa. The last four lines, when uncommented, should create a new
 profile for your sound card. You can then activate the new profile in
 pavucontrol's Configuration tab. You need to restart pulseaudio before
 the changes take effect.

  And configure the combined output here:
 
  http://i49.tinypic.com/hvpanm.png

 That should do the trick for the module-combine part.

 --
 Tanu Kaskinen

 ___
 pulseaudio-discuss mailing list
 pulseaudio-discuss@mail.0pointer.de
 https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss




-- 
Josu Lazkano
___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] Two outputs

2009-12-28 Thread Tanu Kaskinen
ma, 2009-12-28 kello 17:22 +0100, Josu Lazkano kirjoitti:
 Thanks for respond, I add this on the file:
 
 [Profile output:analog-stereo+output:iec958-stereo+output:hdmi-stereo
 +input:analog-stereo]
 description = Personalizado
 output-mappings = analog-stereo iec958-stereo hdmi-stereo
 input-mappings = analog-stereo
 
 Here is all the config: http://pastebin.com/f7349bfdc
 
 I reboot, but there is no Personalizado on the profile.

That's probably because pulseaudio wasn't able to activate that profile.
According to your original message you don't need HDMI at the same time
with the others. I recommend removing the hdmi mapping from the profile,
because each additional mapping reduces the possibility that all
mappings of the profile can be opened at the same time, and if they
can't be opened, then the profile won't be available.

For the same reason you can try removing the analog-stereo input mapping
from the profile, unless you actually need to have a mic available at
the same time as the two outputs.

If it still doesn't work, chances are that your sound card doesn't
support opening both outputs at the same time.

 Is there other way?

As Colin said in his first response, you can add a separate sink for one
of the outputs manually in default.pa, but I don't think it will work
any better than creating the new profile.

-- 
Tanu Kaskinen


___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


[pulseaudio-discuss] Sink for event sounds? WAS: paplay - sound roles?

2009-12-28 Thread Ng Oon-Ee
On Mon, 2009-12-28 at 15:45 +0100, Lennart Poettering wrote:
 On Mon, 28.12.09 17:41, Ng Oon-Ee (ngoo...@gmail.com) wrote:
 
  Is there a way to specify a sound to be a 'system sound' as defined
by
  System Sounds on pavucontrol, when played by paplay?
  
  If so, then programs such as pidgin which allow playing event
  notifications through a command would be useable without
modification.
 
 paplay --property=media.role=event ...
 
 Lennart
 
A follow-up on this, how do I move event sounds to a different sink? For
other streams I simply use pavucontrol, but it doesn't seem that there's
any selector for the System Sounds item. It just selects the
'normal' (laptop sound card output) and I can't figure a way to move it
to my BT headset without turning the sound card output off.



___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] Sink for event sounds? WAS: paplay - sound roles?

2009-12-28 Thread Colin Guthrie
'Twas brillig, and Ng Oon-Ee at 28/12/09 23:43 did gyre and gimble:
 On Mon, 2009-12-28 at 15:45 +0100, Lennart Poettering wrote:
 On Mon, 28.12.09 17:41, Ng Oon-Ee (ngoo...@gmail.com) wrote:

 Is there a way to specify a sound to be a 'system sound' as defined
 by
 System Sounds on pavucontrol, when played by paplay?

 If so, then programs such as pidgin which allow playing event
 notifications through a command would be useable without
 modification.

 paplay --property=media.role=event ...

 Lennart

 A follow-up on this, how do I move event sounds to a different sink? For
 other streams I simply use pavucontrol, but it doesn't seem that there's
 any selector for the System Sounds item. It just selects the
 'normal' (laptop sound card output) and I can't figure a way to move it
 to my BT headset without turning the sound card output off.

I believe that libcanberra always ensures that event sounds are played
on the default sink. Not sure of the inner workings there nor of whether
it should be a stream-restore job (it's capable of routing e.g. all
event sounds to a given sink, overriding (IIRC) the per-application
device rules.

Incidentally, when playing with pidgin, are you sure paplay is the right
thing to use... in the absence of direct libcanberra support, could you
not use canberra-gtk-play -i message-new-instant or similar to play
the relevant sound from the FDO sound theme naming spec[1] when the
appropriate action occurs. I'd imagine writing a libcanberra plugin for
purple/pidgin wouldn't be very hard at all... basically just bridging
code (although this is without the benefit of looking at either set
of APIs in any great depth :p)


Incidentally Lennart, can you sort out the following:

http://0pointer.de/public/sound-theme-spec.html :
Version says 0.2 at the top, change summary mentions 0.5.

http://www.freedesktop.org/wiki/Specifications/sound-theme-spec :
Links to the above link as version 0.3 (not 0.2 or 0.5 as expected!)


This is very confusing - can all links and versions linked from the
official places please be made to be the most recent versions?

Col

[1] http://0pointer.de/public/sound-naming-spec.html
-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
  Mandriva Linux Contributor [http://www.mandriva.com/]
  PulseAudio Hacker [http://www.pulseaudio.org/]
  Trac Hacker [http://trac.edgewall.org/]

___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] Sink for event sounds? WAS: paplay - sound roles?

2009-12-28 Thread Ng Oon-Ee
On Tue, 2009-12-29 at 00:30 +, Colin Guthrie wrote:
 'Twas brillig, and Ng Oon-Ee at 28/12/09 23:43 did gyre and gimble:
  On Mon, 2009-12-28 at 15:45 +0100, Lennart Poettering wrote:
  On Mon, 28.12.09 17:41, Ng Oon-Ee (ngoo...@gmail.com) wrote:
 
  Is there a way to specify a sound to be a 'system sound' as defined
  by
  System Sounds on pavucontrol, when played by paplay?
 
  If so, then programs such as pidgin which allow playing event
  notifications through a command would be useable without
  modification.
 
  paplay --property=media.role=event ...
 
  Lennart
 
  A follow-up on this, how do I move event sounds to a different sink? For
  other streams I simply use pavucontrol, but it doesn't seem that there's
  any selector for the System Sounds item. It just selects the
  'normal' (laptop sound card output) and I can't figure a way to move it
  to my BT headset without turning the sound card output off.
 
 I believe that libcanberra always ensures that event sounds are played
 on the default sink. Not sure of the inner workings there nor of whether
 it should be a stream-restore job (it's capable of routing e.g. all
 event sounds to a given sink, overriding (IIRC) the per-application
 device rules.

Hmm, is it then impossible to move event sounds? Doesn't seem like a
good way to do it.

 Incidentally, when playing with pidgin, are you sure paplay is the right
 thing to use... in the absence of direct libcanberra support, could you
 not use canberra-gtk-play -i message-new-instant or similar to play
 the relevant sound from the FDO sound theme naming spec[1] when the
 appropriate action occurs. I'd imagine writing a libcanberra plugin for
 purple/pidgin wouldn't be very hard at all... basically just bridging
 code (although this is without the benefit of looking at either set
 of APIs in any great depth :p)

canberra-gtk-play doesn't seem to work here, errors out with:-
Failed to play sound: Sound disabled

I've never used it before, and I believe libcanberra on my system may
not even have pulseaudio support compiled in, hence my preference for
paplay (I don't use any gnome event sounds).

___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


[pulseaudio-discuss] asyncq.c: q overrun, queuing locally

2009-12-28 Thread Chris
I noticed tonight that when I was copying a 1.2Gb file to my thumb drive
that it took forever. From a suggestion in another list I ran in a
terminal pulseaudio -k ; pulseaudio -. I've attached the output. One
other thing of note, after disabling pulseaudio I was able to copy the
file in around 3minutes. In the previous example I had to stop the copy
process after 15 minutes at only 50%. This is on:

Mandriva 2010
pulseaudio 0.9.19-7mdv2010.0
Gnome 2.28.0

Any other information I need to provide please let me know.

Chris


-- 
KeyID 0xE372A7DA98E6705C



palogfilecopy122809.txt.bz2
Description: application/bzip


signature.asc
Description: This is a digitally signed message part
___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] Two outputs

2009-12-28 Thread Jens Peters

On 23-12-2009 7:08, Tanu Kaskinen wrote:

Actually, there's another way. Profiles can be configured in the files
under /usr/share/pulseaudio/alsa-mixer/profile-sets/. The easiest
approach is to just edit default.conf in that directory. It takes some
time to actually understand how those configuration files are used, but
luckily for this exact case default.conf already contains a
commented-out example, which can just be uncommented and it should work
(if the sound card is capable of using both outputs at the same time,
that is).

You still need to use module-combine for simultaneous output.

 Wow, what nice tip, me using spdif and headset in front simultaneously 
again, thanks a lot!


Jens

___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss