bool ISoundLoader.TryParseSound(Stream stream, out ISoundFormat sound) { try { if (IsWave(stream)) { sound = new WavFormat(stream); return true; } } catch { // Not a (supported) WAV } sound = null; return false; }
bool ISoundLoader.TryParseSound(Stream stream, out ISoundFormat sound) { try { if (IsAud(stream)) { sound = new AudFormat(stream); return true; } } catch { // Not a supported AUD } sound = null; return false; }