Esempio n. 1
0
        private bool initializeMode(AudioMode mode)
        {
            if (mode == AudioMode.MODE_AAC)
            {
                Mode       = AudioMode.MODE_AAC;
                AACDecoder = new aacDecoder();
                hDecoder   = AACDecoder.open();
                if (hDecoder != (IntPtr)0)
                {
                    return(true);
                }
            }
            else if (mode == AudioMode.MODE_MP2)
            {
                Mode       = AudioMode.MODE_MP2;
                DABDecoder = new dabDecoderDAB();
                return(true);
            }

            Mode = AudioMode.MODE_NIL;
            return(false);
        }
Esempio n. 2
0
 public Decode()
 {
     AACDecoder = new aacDecoder();
     hDecoder   = AACDecoder.open();
 }