This sample uses the Core Audio APIs to implement an on-screen display that shows volume changes to the output stream that plays through the default audio-rendering endpoint device. The on-screen display appears when the user adjusts the volume level in the Windows volume-control program, Sndvol.exe, and it disappears after the volume level remains unchanged for a short period.
This topic containes the following sections.
- Downloading the Sample
- Building the Sample
- Running the Sample
- Related topics
This sample demonstrates the following features.
|Windows SDK||Windows Vista or later|
|Visual Studio||2005 or later|
This sample is available in the following locations.
|Windows SDK||\Program Files\Microsoft SDKs\Windows\v7.0\Samples\Multimedia\Audio\OSD\...|
- Open the CMD shell for the Windows SDK and change to the OSD sample directory.
- Run the command "start OSD.sln" in the OSD directory to open the OSD project in the Visual Studio window.
- From within the window, select the Debug or Release solution configuration, select the Build menu from the menu bar, and select the Build option. If you do not open Visual Studio from the CMD shell for the SDK, Visual Studio will not have access to the SDK build environment. In that case, the sample will not build unless you explicitly set environment variable MSSdk, which is used in the project file, OSD.vcproj.
- Run the OSD executable file, OSD.exe, in Windows Vista or later. Note that you will not see a system tray icon or a window for the application, but you can see the process running using TaskMgr.exe.
- Run sndvol.exe to change the volume or mute, or change the volume using keyboard controls or an HID control. The OSD user interface is displayed.
- To exit the application, run TaskMgr.exe, highlight the OSD.exe process and click End Process.