玩在.NET .wav文件文件、NET、wav

2023-09-03 01:11:56 作者:心事死在風裏

我想写采样方案,其中每个键有不同的声音(WAV文件)。

能否有人向我解释或者给我一个链接到一个解释,我可以学习如何玩WAV文件?

如果它的事项,我正与微软的Visual C#和使用的WinForms。

解决方案

 声音播放simpleSound =新的声音播放(strAudioFilePath);
simpleSound.Play();
 

VB.net单exe文件内MP3和WAV音乐文件播放

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();