[KDE Dot News]
 faq
 flatforty
 contribute
 subscribe
 configure
 search
 rdf

 main
 parent
 thread


Re: Per-App Settings?
by Matthias Kretz on Tuesday 06/Feb/2007, @09:39
1) Every Phonon AudioOutput object can be told over dbus to change its volume. For now the only way to remote control the volume of an app is to use qdbus:
% qdbus org.kde.knotify /AudioOutputs/0 Get org.kde.Phonon.AudioOutput volume
1
% qdbus org.kde.knotify /AudioOutputs/0 Set org.kde.Phonon.AudioOutput volume 0.2
% qdbus org.kde.knotify /AudioOutputs/0 Get org.kde.Phonon.AudioOutput volume
0.200000002980232

The value is stored as float in case you wonder about the 0.2.

2) It's on the todo list. But it's not likely to be ready for 4.0 unless more people help out. The idea is to use AudioDataOutput and VideoDataOutput objects to capture the media data and then an AvWriter object to encode and write to a file.
  Related Links
 ·   Articles on KDE Public Relations and Marketing
 ·   Also by Matthias Kretz
 ·   Contact author

Thread Threshold:

The Fine Print: The following comments are owned by whomever posted them.
( Reply )

Re: Per-App Settings?
by Anon on Tuesday 06/Feb/2007, @10:08
Great stuff, thanks Matthias :)

The answer to 2) is a huge (and welcome!) surprise to me: it looks like you have a very rich and functional piece of software coming together. Keep it up!
[ Reply To This | View ]
The Fine Print: The previous comments are owned by whomever posted them.
( Reply )

  "I'm holding out for a computer interface that plugs directly into my cerebral cortex." -- Sirtaj Singh Kang
KDE®, "K Desktop Environment", "KDE Dot News", "got the dot?" and the KDE Logo® are trademarks or registered trademarks of KDE e.V. in the European Union, the United States and other countries. All other trademarks and copyrights on this page are owned by their respective owners. Comments are owned by the poster. The rest: Copyright © 2000-2008 KDE e.V. for The KDE Project. For further information or comments on this site, please contact the Webmaster.
[ home | post article | flat forty | subscribe | search | rdf ]