Discussion Board

Results 1 to 8 of 8
  1. #1
    Regular Contributor ivanlitovski's Avatar
    Join Date
    Mar 2003
    Posts
    67
    Since QAudioOutput does not provide any volume control (!?!?!?), I am trying to find a way to set system-wide volume. So far, no luck. Any help appreciated.

    Thanks

  2. #2
    Nokia Developer Champion rahulvala's Avatar
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,294
    Check this : http://doc.qt.nokia.com/qtmobility-1.2/multimedia.html

    Can you do like this way : player->setVolume(50) // set 100 for maximum volume.

    regards,
    rahul

  3. #3
    Regular Contributor ivanlitovski's Avatar
    Join Date
    Mar 2003
    Posts
    67
    Quote Originally Posted by rahulvala View Post
    Check this : http://doc.qt.nokia.com/qtmobility-1.2/multimedia.html

    Can you do like this way : player->setVolume(50) // set 100 for maximum volume.
    Thanks Rahul, but this is not what I was asking.

    First, I am not using QMediaPlayer, but QAudioOutput. Second, the question was how to set SYSTEM-WIDE volume.

    Setting system volume anybody?

  4. #4
    Nokia Developer Champion rahulvala's Avatar
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,294
    Read this bugreport : https://bugreports.qt.nokia.com//browse/QTBUG-10729

    regards,
    rahul

  5. #5
    Regular Contributor ivanlitovski's Avatar
    Join Date
    Mar 2003
    Posts
    67
    Quote Originally Posted by rahulvala View Post
    I did, and again this has nothing to do with what I asked. Are you a robot?

  6. #6
    Nokia Developer Champion mikkovtr's Avatar
    Join Date
    Nov 2009
    Posts
    198
    I think you can (maybe) set system wide volume directly via alsa, which is the low level sound layer. I really don't know if using alsa directly is supported or recommended in any way, but there are alsa docs from Nokia available here http://harmattan-dev.nokia.com/docs/...ZWZlcmVuY2U%3D

    I assume that you have N9/N950, so you can try to play with first 'alsamixer' to see how it affects volume. You can start alsamixer from terminal after going to kind-of-root via 'devel-sh'. It is apparently possible to set volume too high so be careful not break anything.

    I don't know enough about sound subsystem to say if it is wise idea or not.

    Edit: I think using alsa directly might be forbidden by security policy.
    Last edited by mikkovtr; 2011-11-24 at 00:30.

  7. #7
    Registered User kusumk's Avatar
    Join Date
    Sep 2011
    Posts
    449
    http://harmattan-dev.nokia.com/docs/...diooutput.html

    There is a setVolume method here. Hope this link above helps.

  8. #8
    Nokia Developer Champion savaj's Avatar
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034
    Quote Originally Posted by kusumk View Post
    http://harmattan-dev.nokia.com/docs/...diooutput.html

    There is a setVolume method here. Hope this link above helps.
    That method can set the volume of the audio that you are play using AudioOutput only.

    For original question "How to set system volume?" I really don't know how to do it.

Similar Threads

  1. Changing system sound volume
    By Thrake in forum Qt
    Replies: 5
    Last Post: 2010-11-26, 23:33
  2. change system volume in j2me
    By mehdi_shz11 in forum Mobile Java General
    Replies: 4
    Last Post: 2010-10-11, 05:36
  3. Sound volume of System
    By mabdelaal in forum Nokia N9
    Replies: 4
    Last Post: 2010-03-20, 15:22
  4. How to get/set system musicplayer's volume setting?
    By ezNokia in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2007-10-11, 10:05
  5. How to get system current volume in S60 3rd?
    By Kiss_Fish in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2006-05-11, 10:35

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved