public void Open(AudioFormat format)
        {
            if (format == null)
            {
                throw new ArgumentNullException("format");
            }

            SLAudioFormat mediaFormat;

            if (!this.formats.TryGetValue(format, out mediaFormat))
            {
                throw new ArgumentException("Unsupported format", "format");
            }
        }
        public void Open(AudioFormat format)
        {
            if (format == null)
                throw new ArgumentNullException ("format");

            SLAudioFormat mediaFormat;
            if (!this.formats.TryGetValue (format, out mediaFormat))
                throw new ArgumentException ("Unsupported format", "format");
        }