I need to implement Tap (Touch) volume control using UWP code.
For example, if I tap a button in my terminal, the volume of tapping sound could control in App settings. This control must link into the mobile or any other devices.
Few investigations: Tap sound from an adjustment of Ringtone Volume in our mobile. so we need to get the response from Ringtone settings.
I've searched most about this, but couldn't find the solution.
Update
at Slider change event:
Slider slider = sender as Slider;
double volumeLevel = slider.Value / 10;
ElementSoundPlayer.Volume = volumeLevel;
//CurrVolumeLevel = (double)ElementSoundPlayer.Volume;
CurrVolumeLevel = volumeLevel;
At pageload:
//player = new MediaPlayer();
CurrVolumeLevel = (double)ElementSoundMode.Default;
ElementSoundPlayer.State = ElementSoundPlayerState.Aut
o