Plays streamed PCM-format sounds.
Esempio n. 1
0
 private bool LoadSoundFile(string name)
 {
     try
     {
         ApplicationStreamedSound = new StreamedMp3Sound(ApplicationDevice, new Mp3Stream(name));
     }
     catch (SoundException)
     {
         return(false);
     }
     return(true);
 }
Esempio n. 2
0
 private bool LoadSoundFile(string name)
 {
     try
     {
         ApplicationStreamedSound = new StreamedMp3Sound(ApplicationDevice, new Mp3Stream(name));
     }
     catch(SoundException)
     {
         return false;
     }
     return true;
 }