[solved] how do i get the current volume of device in qt?
I use phonon to play music but the volume not change when user changes volume of device.
Please help, thanks.
Could you please share more details? Game for which platform are you developing and how does to user changes the volume of the device?
@leon.anavi thanks you a lot.
I had solved it.
I have developed in harmattan platform, i forgot set the name for QApplication object before create any object of phonon::MediaObject . now it had been solved but i still want know what event will be thrown when user change volume of device.
[quote author="Tratstil" date="1314087052"]@leon.anavi thanks you a lot.
I had solved it.[/quote]
You are welcome but I didn't do anything :)
Btw there is a thread at "developer.nokia.com about volume keys on MeeGo Harmattan devices":http://www.developer.nokia.com/Community/Discussion/showthread.php?226283-Grab-Volume-Keys-on-Harmattan. Another interesting link regated to the same topic is: "Using Resource Policy to enhance games":http://library.developer.nokia.com/topic/MeeGo_1.2_Harmattan_API/html/guide/html/Developer_Library_Best_practices_for_application_development_Using_Resource_Policy_to_enhance_games_a32a.html. These links might be useful to you.
:) good link.
Can you please share some more details about how you solve the problem.
I am also using Phonon in one of my project. But when I change volume using volume key it dose not affect volume to Phonon AudioObject.
You said you set application name and it solve your problem ? Are you referring to QCoreApplication::setApplicationName ?