Exemplo n.º 1
0
        internal virtual int decodeMP3 <T>(
            MPGLib.mpstr_tag mp,
            byte[] @in,
            int bufferPos,
            int isize,
            T[] @out,
            int osize,
            MPGLib.ProcessedBytes done,
            Decode.Factory <T> tFactory)
        {
            if (osize < 2304)
            {
                Console.WriteLine("hip: Insufficient memory for decoding buffer %d\n", osize);
                return(MPGLib.MP3_ERR);
            }

            /* passing pointers to the functions which clip the samples */
            ISynth synth = new ISynthAnonymousInnerClass <T>(this, mp, @in, @out, tFactory);

            return(decodeMP3_clipchoice(mp, @in, bufferPos, isize, @out, done, synth, tFactory));
        }
Exemplo n.º 2
0
        internal virtual int decodeMP3 <T>(
            MPGLib.mpstr_tag mp,
            byte[] @in,
            int bufferPos,
            int isize,
            T[] @out,
            int osize,
            MPGLib.ProcessedBytes done,
            Decode.Factory <T> tFactory,
            bool seek)
        {
            if (osize < 2304)
            {
                return(MPGLib.MP3_ERR);
            }

            /* passing pointers to the functions which clip the samples */
            ISynth <T> synth = new ISynthAnonymousInnerClass <T>(this, mp, @in, @out, tFactory);

            return(decodeMP3_clipchoice(mp, @in, bufferPos, isize, @out, done, synth, tFactory, seek));
        }