[英]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. 我刚刚开始使用Visual Studio Community 2015并尝试创建一个简单的虚拟钢琴应用程序,在点击时播放相应的键。 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. 我正在使用Visual C#,显然System.Media命名空间不适用于应用程序,所以我用尽了可能性。
Is there an alternative with UWP apps? UWP应用程序有替代品吗?
You can use Windows.Device.Midi to play. 您可以使用Windows.Device.Midi播放。 Here's the link : https://msdn.microsoft.com/en-us/windows/uwp/audio-video-camera/midi 这是链接: https : //msdn.microsoft.com/en-us/windows/uwp/audio-video-camera/midi
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.