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