View Single Post
Posts: 1,086 | Thanked: 2,964 times | Joined on Jan 2010
#2
Ah so that's what you're working on I just noticed your pm, but let's try and answer it here so we can get everyone's input.

Well it should be quite simple to fix this as you've been following the maeFart tutorial. To help pinpoint the problem could you do us a favor, and run your Simpsons sound app from XTerm? If you're not sure how, open XTerm and navigate to the correct folder then type in:

Code:
python your_simpsons_main_filename.py
This should run your app. When it runs, any errors and output will appear on the XTerm window so please check the XTerm output for the following message:

Code:
"WARNING: Phonon needs QCoreApplication::applicationName to be set to export audio output names through the DBUS interface."
Is it there? If so, it's a simple fix and by setting the application name within your app you'll find that pressing the hardware volume rocker switch will change the loudness of Homer's 'D'Oh!'s and Bart's "Eat my shorts" up and down automagically

So try adding that in your main.py file so it looks like below, and let me know if it works:

Code:
if __name__ == "__main__":
    app = QApplication(sys.argv)
    QApplication.setApplicationName("Simpsons Sounds")

... rest of the file... etc
__________________
Follow me on my neglected twitter @kojacker

Cybot950 - Control a robot with your N9/N950
SMSPetFeeder - Build a Bluetooth/SMS dog feeder with Qt, N950, and arduino
Nerf950 - Use your N9/N950 to fire a Nerf gun