private void CheckSourceFormat(SampleFormat sampleFormat) { if (!FormatTranslations.ContainsKey(sampleFormat)) throw new UnsupportedSampleFormatException("Source sample format is not supported by the filter."); } }