Exemplo n.º 1
0
            private void CTL(SpeexDspCtl ctl, ref float value)
            {
                var code = SpeexDspNativeMethods.speex_preprocess_ctl(_preprocessor, (int)ctl, ref value);

                if (code != 0)
                {
                    throw new InvalidOperationException(string.Format("Failed Speex CTL '{0}' Code='{1}'", ctl, code));
                }
            }
Exemplo n.º 2
0
            private float CTL_Float(SpeexDspCtl ctl)
            {
                var result = 0f;

                var code = SpeexDspNativeMethods.speex_preprocess_ctl(_preprocessor, (int)ctl, ref result);

                if (code != 0)
                {
                    throw new InvalidOperationException(string.Format("Failed Speex CTL '{0}' Code='{1}'", ctl, code));
                }

                return(result);
            }