Multiple Phonon audioOutput instances don't work properly on linux?

I'm working on a soundboard program. The window is populated with multiple instances of the below SoundPlayer class. When running my program the volume sliders don't affect their own player. The last initiated player's volume slider controls the volume for the entire program. I've printed out all the instances of the audioObjects, volumeSliders, etc, and none of them are shared between players. I had each player print out it's volume, and using the correct volume sliders does change the volume (audioOutput.volume()), but with no audible effect. Using the last initated volume slider the audioOutput volume for the other players doesn't change the volume value but yet there is an audible effect. I'm at a loss since this works perfectly fine on multiple Windows machines but not on ubuntu 12.04. After seeking help elsewhere and running this on multiple machines I'm beginning to think it's a PySide/Phonon problem with linux?

EDIT: Seems the problem lies more with audioOutput. I connected some buttons to .setVolume() and manually adjusted the volume and it bugged out the same as before. Only the last initiated player's volume actually affects the audible sound, and do so for every player.

SoundPlayer class: (Some of the ui setting up was trimmed for brevity. Key parts include createAttr()/loadAttr() where the audioOutputs and MediaObjects are created, and setupUi() where the volume sliders are created.)

class SoundPlayer():
  def __init__(self, MainWindow, position, instance, attributes):
    self.instance = instance
    self.mainWindow = MainWindow
    self.pos = position
    if attributes == '':
      self.attributes = [, self.filename]
      self.attributes = attributes
    self.buttons() = QDesktopServices.storageLocation(QDesktopServices.MusicLocation)

  def updateDevice(self, device):

  def loadAttr(self): = self.attributes[0]
    self.filename = self.attributes[1] = Phonon.MediaObject(self.instance) = Phonon.AudioOutput(Phonon.MusicCategory, self.instance)
    self.source = Phonon.MediaSource(self.filename)

  def createAttr(self):
    self.filename = '' = 'None' = Phonon.MediaObject(self.instance) = Phonon.AudioOutput(Phonon.MusicCategory, self.instance)
    self.source = Phonon.MediaSource(self.filename)
    Phonon.createPath(, x,y: self.changed(x,y))

  def saveAttr(self):
    self.attributes = [, self.filename]

  def buttons(self):

  def onplaybutton(self):
    state =
    if state != Phonon.State.PausedState and state != Phonon.State.PlayingState:
    elif state == Phonon.State.PlayingState:
    elif state == Phonon.State.PausedState:
      time =

  def onresetbutton(self):

  def onstopbutton(self):

  def updateUi(self): = Phonon.SeekSlider(, self.widget), 21)
    self.volume = Phonon.VolumeSlider(, self.volumeWidget)
    self.volume.resize(111, 21)
    self.playButton.setIcon(QtGui.QIcon(":play.png")) x,y: self.changed(x,y))


Most probably not your fault:

Need Your Help

Failure to write NSString to file on iPad

objective-c nsstring ipad

I'm using a text file to save the changes made by a user on a list (the reason that I'm doing this is so that I can upload the text file to a PC later on, and from there insert it into an Excel

How can I do 64-bit hex/decimal arithmetic AND output a full number in HEX as string in Perl?

perl math 64-bit printf

I need to do some arithmetic with large hexadecimal numbers below, but when I try to output I'm getting overflow error messages "Hexadecimal number > 0xffffffff non-portable", messages about not po...