locked
How Metro App can Set the speaker sound volume ?

    Question

  • Hi,

    how Metro app can set the System Volume (let say to 90 %) when the app starts . if volume can't be changes from c# codes, then codes or API to be called from backend c++ module could also be very helpful .

    Tuesday, June 03, 2014 11:38 AM

Answers

  • No, you can't do this.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Wednesday, June 04, 2014 3:22 PM
    Moderator

All replies

  • User has control of the system volume, not apps.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Tuesday, June 03, 2014 1:13 PM
    Moderator
  • System Volume can be controlled by API like MMDeviceApi , but i doubt MMDeviceAPI is not available for Metro app(correct me if i am wrong).

    Is there such API for Metro Apps.

    Tuesday, June 03, 2014 2:57 PM
  • No, you can't do this.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Wednesday, June 04, 2014 3:22 PM
    Moderator