[PyQt] Probably a really simple Phonon question with gstreamer backend and kmix volume control

Michael Staggs tausciam at gmail.com
Sun Sep 15 03:14:08 BST 2013


No ideas?

On Tuesday, September 10, 2013 10:02:02 PM Michael Staggs wrote:
> This is a screenshot of my program I've written and KMIX:
> http://imgur.com/COu7coD
> 
> As you can see, it's a pretty nice pyqt program and everything works very
> well in opensuse. However, when I switch into kubuntu I run into a problem
> that you can see: in kmix, it shows TWO audio outputs for my program. The
> slider works the second one....which means it has very little control over
> the actual volume.
> 
> The actual code snippet is:
> 
>     @pyqtSlot()
>     def item_clicked(self):
>         row = self.listWidget.currentRow()
>         song = musiclist[row]
>         self.mediaObject = Phonon.createPlayer(Phonon.MusicCategory)
>         self.audioOutput = Phonon.AudioOutput(Phonon.MusicCategory, self)
>         Phonon.createPath(self.mediaObject, self.audioOutput)
>         self.volumeSlider.setAudioOutput(self.audioOutput)
>         self.mediaObject.setCurrentSource(Phonon.MediaSource(song))
>         self.mediaObject.play()
> 
> I don't know why you would, but If you want the whole program, you can find
> the source you can install with python setup.py install here....along with
> many RPMs: 
> http://qt-apps.org/content/show.php/Kids%27+Media+Player?content=160528
> 
> You can find the deb here:
> https://www.dropbox.com/s/wxnp050qot4fgen/kmp_1.1_all.deb
> 
> It has an error in it and doesn't require python-qt4-phonon....which is
> actually required.


More information about the PyQt mailing list