How to obtain and set the audio volume level for a universal Windows application

advertisements

The title says it all, I would like to get and set audio volume level for a Universal Windows (iot) application.

It can be either the sound level associated with my particular application - which would be ideal; or it can be the system sound level - if necessary / possible.

I am using visual studio 2015

I've been searching for examples / samples but have come up dry.

Any help would be appreciated.

(of note this is not a duplicate question - I want to get and set audio volume level for a Universal Windows application - this can not be done via a COM object in uwp - nor do uwp apps use VBScript or JScript)


Look at the source code of this: https://github.com/File-New-Project/EarTrumpet

It'll contain what you're looking for.