玩在.NET .wav文件 [英] Playing a .WAV file in .NET
本文介绍了玩在.NET .wav文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想写采样方案,其中每个键有不同的声音(WAV文件)。
能否有人向我解释或者给我一个链接到一个解释,我可以学习如何玩WAV文件?
如果它的事项,我正与微软的Visual C#和使用的WinForms。
解决方案
声音播放simpleSound =新的声音播放(strAudioFilePath);
simpleSound.Play();
I'm trying to write a SAMPLER program, where each key has a different sound (a WAV file).
Can someone explain to me or give me a link to an explanation where i can learn how to play the WAV files?
If it matters, I'm working with Microsoft Visual C# and using WinForms.
解决方案
SoundPlayer simpleSound = new SoundPlayer(strAudioFilePath);
simpleSound.Play();
这篇关于玩在.NET .wav文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文