Microsoft.Xna.Framework を使用して wav ファイルを再生しようとしていますが、このエラーを解決できません。
A first chance exception of type 'System.ArgumentException' occurred in Microsoft.Xna.Framework.ni.dll
An exception of type 'System.ArgumentException' occurred in Microsoft.Xna.Framework.ni.dll but was not handled in user code
以下は私のコードです:(エラーは行で発生しますTitleContainer.OpenStream(dingSoundFile)
:)
SoundEffectInstance seiCircus;
string dingSoundFile = "/Html/sounds/tap.wav";
using (var stream = TitleContainer.OpenStream(dingSoundFile))
{
var effect = SoundEffect.FromStream(stream);
//create the instance
seiCircus = effect.CreateInstance();
FrameworkDispatcher.Update();
//play sound via the instance
seiCircus.Play();
}