Re: [PyQt] Probably a really simple Phonon question with gstreamer
I just named a phonon volume slider and it popped up in kmix when it started playing output Message: 1 Date: Sun, 15 Sep 2013 15:03:00 +0200 From: David Boddie da...@boddie.org.uk To: pyqt@riverbankcomputing.com Subject: Re: [PyQt] Probably a really simple Phonon question with gstreamer backend and kmix volume control Message-ID: 201309151503.01157.da...@boddie.org.uk Content-Type: Text/Plain; charset=iso-8859-1 On Sat, 14 Sep 2013 21:14:08 -0500, Michael Staggs wrote: No ideas? I failed to reproduce the problem on Debian, but there are other issues that may be causing that. See below. 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 onewhich means it has very little control over the actual volume. [...] How did you get kmix to show the application's audio output? It doesn't show any application-specific sliders in the version I'm using. David ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Probably a really simple Phonon question with gstreamer backend and kmix volume control
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 ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Probably a really simple Phonon question with gstreamer backend and kmix volume control
On Sat, 14 Sep 2013 21:14:08 -0500, Michael Staggs wrote: No ideas? I failed to reproduce the problem on Debian, but there are other issues that may be causing that. See below. 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 onewhich means it has very little control over the actual volume. [...] How did you get kmix to show the application's audio output? It doesn't show any application-specific sliders in the version I'm using. David ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Probably a really simple Phonon question with gstreamer backend and kmix volume control
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 onewhich 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 herealong 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-phononwhich is actually required. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt