Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. Probably a really simple Phonon question with gstreamer backend and kmix volume control
Forum Update on Monday, May 27th 2025

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

Scheduled Pinned Locked Moved Language Bindings
1 Posts 1 Posters 1.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tannhaus
    wrote on last edited by
    #1

    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. If I keep playing around with kmix, I can usually get it to switch focus to the correct volume control.

    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'+Media+Player?content=160528

    You can find the deb here:
    https://www.dropbox.com/s/wxnp050qot4fgen/kmp_1.1_all.deb

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved