You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are many ways to use sound to enhance your app. You can use to sound to supplement other UI elements, enabling users to recognize events audibly. Sound can be an effective user interface element for people with visual disabilities. You can use sound to create an atmosphere that immerses the user; for example, you might play a whimsical soundtrack in the background of puzzle game, or use ominous sound effects for a horror/survival game.
21
16
@@ -31,9 +26,9 @@ There are many ways to use sound to enhance your app. You can use to sound to su
31
26
32
27
## Sound Global API
33
28
34
-
UWP provides an easily accessible sound system that allows you to simply "flip a switch" and get an immersive audio experience across your entire app.
29
+
WinUI provides an easily accessible sound system that allows you to simply "flip a switch" and get an immersive audio experience across your entire app.
35
30
36
-
The [**ElementSoundPlayer**](/uwp/api/windows.ui.xaml.elementsoundplayer) is an integrated sound system within XAML, and when turned on all default controls will play sounds automatically.
31
+
The [**ElementSoundPlayer**](/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.elementsoundplayer) is an integrated sound system within XAML, and when turned on all default controls will play sounds automatically.
@@ -88,7 +83,7 @@ Each sound relates to a certain basic user interaction, and although sounds can
88
83
89
84
The most common control-triggered sound in our system today is the **Invoke** sound. This sound plays when a user invokes a control through a tap/click/enter/space or press of the 'A' button on a gamepad.
90
85
91
-
Typically, this sound is only played when a user explicitly targets a simple control or control part through an [input device](../input/index.md).
86
+
Typically, this sound is only played when a user explicitly targets a simple control or control part through an [input device](../../design/input/index.md).
92
87
93
88
94
89
To play this sound from any control event, simply call the Play method from **ElementSoundPlayer** and pass in **ElementSound.Invoke**:
When navigating between panels or views within an app's page (see [NavigationView](../controls/navigationview.md)), there is typically bidirectional movement. Meaning you can move to the next view/panel or the previous one, without leaving the current app page you're on.
110
+
When navigating between panels or views within an app's page (see [NavigationView](../../design/controls/navigationview.md)), there is typically bidirectional movement. Meaning you can move to the next view/panel or the previous one, without leaving the current app page you're on.
116
111
117
112
The audio experience around this navigation concept is encompassed by the **MovePrevious** and **MoveNext** sounds.
118
113
@@ -152,5 +147,4 @@ The purpose behind this cycling feature is to keep the focus sounds from becomin
152
147
153
148
## Related articles
154
149
155
-
*[Designing for Xbox and TV](../devices/designing-for-tv.md)
156
-
*[ElementSoundPlayer class documentation](/uwp/api/windows.ui.xaml.elementsoundplayer)
150
+
*[ElementSoundPlayer class documentation](/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.elementsoundplayer)
0 commit comments