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

David Boddie david at boddie.org.uk
Mon Sep 16 23:32:15 BST 2013


On Tuesday, September 10, 2013 10:02:02 PM Michael Staggs wrote:

> 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()

Just bringing back the code from a previous message (found in bin/kmp) with
a thought about a possible issue. Have you checked to see if this is being
called twice? I can't imagine it could cause the problem you're seeing but
I'm not familiar with the peculiarities of Phonon.

David


More information about the PyQt mailing list