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

2009-12-31 Thread Lennart Poettering
On Tue, 29.12.09 07:40, Ng Oon-Ee (ngoo...@gmail.com) wrote:

   Thanks Lennart. man paplay doesn't show that syntax... is it a
   relatively recent addition?
  
  Kinda. paplay --help shows it. Patches for the man pages (same way
  as for the code) always appreciated! ;-)
  
 So I'd just submit a diff? Unsure how to properly format though...

git-format-patch formatted patches are always preferred.

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] 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


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


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


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