2013-09-30 121 views
0

我想爲我的遊戲製作環狀背景音樂。我在微軟的Visual Studio 2010的工作在C#中我寫了這個:從資源鏈接播放音樂

InitializeComponent(); 
System.Media.SoundPlayer sp = new System.Media.SoundPlayer(@"MCStratV1.Properties.Resources.loop1.mp3"); 

//sp.PlayLooping(); 

sp.Play(); 

我不知道該怎麼做一個鏈接到資源。我是C#的新手,所以我不太瞭解它。 另外我寫了//因爲我不確定它是否正確。

回答