Registered Member
|
I have written this little python script to play a sound using Phonon.
(I originally posted it here) I find it useful because it doesn't conflict with amarok or any application that uses Phonon (the other command-line utils I saw tried to use alsa directly) Hope you like it. I called it 'phonon-play' and made an alias named 'pplay' to execute the script.
|
KDE Developer
|
Just out of curiosity: does it need the QApplication from QtGUI or could it also just use QCoreApplication from QtCore?
Cheers, _
anda_skoa, proud to be a member of KDE forums since 2008-Oct.
|
Administrator
|
By looking at the Phonon documentation, on doc.qt.nokia.com, it seems that it should be possible in theory to use QCoreApplication as none of the used classes are GUI classes.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
I'm a real noob here, you are probably absolutely right. Since it worked well, I left it as it is...
|
KDE Developer
|
Thanks, this is really useful!
|
KDE Developer
|
Fixed the Pnonom -> Phonon for the sakes of searching.
|
Registered Member
|
i prefer using xmms2 for playing audio files via command line
|
Registered Member
|
Aweome tip mate, thanks.
Just signed up and already seeing the value here. |
Registered Member
|
Just signed up and already seeing the value here.
I am a bit overwhelmed with the great info but will catch up and hopefully contribute more soon. |
Registered Member
|
Indeed, replacing the occurrence of QtGUI with QtCore and changing all QApplication to QCoreApplication still made my computer play the soundfile I passed to phonon-play.py |
Registered Member
|
I was looking for this thank
|
Registered users: Bing [Bot], gfielding, Google [Bot], Sogou [Bot]