public Sound(string filename) { if (String.IsNullOrEmpty(filename)) { throw new ArgumentNullException("s", "Must be a valid System.IO.Stream."); } reader = SoundReader.Create(filename); }
public Sound(Stream s) { if (s == null) { throw new ArgumentNullException("s", "Must be a valid System.IO.Stream."); } reader = SoundReader.Create(s); }