Plays streamed PCM-format sounds.
示例#1
0
文件: Main.cs 项目: jwofles/ForkSO
 private bool LoadSoundFile(string name)
 {
     try
     {
         ApplicationStreamedSound = new StreamedMp3Sound(ApplicationDevice, new Mp3Stream(name));
     }
     catch (SoundException)
     {
         return(false);
     }
     return(true);
 }
示例#2
0
文件: Main.cs 项目: RHY3756547/FreeSO
 private bool LoadSoundFile(string name)
 {
     try
     {
         ApplicationStreamedSound = new StreamedMp3Sound(ApplicationDevice, new Mp3Stream(name));
     }
     catch(SoundException)
     {
         return false;
     }
     return true;
 }