简体   繁体   中英

How do you play a (MIDI) sound in a Windows 10 UWP App?

I just started to work with Visual Studio Community 2015 and was trying to create a simple virtual piano app that plays the respective key when clicked. I already have the layout for the keys but I can't find anything on how to make an actual sound. I'm working with Visual C# and apparently the System.Media namespace doesn't work with apps so I ran out of possibilities.

Is there an alternative with UWP apps?

You can use Windows.Device.Midi to play. Here's the link : https://msdn.microsoft.com/en-us/windows/uwp/audio-video-camera/midi

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM