1
dotnet에서 사용자 프롬프트로 wav 파일을 재생 중입니다. 내 코드는 노트북에서 잘 작동하지만 넷북에서 소리를 건너 뛴 것처럼 보입니다. wav 재생이 닷넷의 netbook에서 일관되게 유지되도록하려면 어떻게해야합니까? 나는이 때어떻게 dotnet에서 신뢰할 수있는 비동기 wav 재생을 보장합니까?
이using (var player = new SoundPlayer(pSoundPath))
{
player.Play();
}
같은 문제가 소리 이름으로 전화를 사전에 소리를 미리로드 : 넷북에 가끔 재생 문제가 발생 현재 코드
Dictionary<string, SoundPlayer> playerDict = new Dictionary<string, SoundPlayer>();
playerDict.Add(soundName, new SoundPlayer(soundPath));
playerDict[soundname].LoadAsync();