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