csvorbis.VorbisFile.get_data C# (CSharp) Method

get_data() private method

private get_data ( ) : int
return int
        private int get_data()
        {
            int index=oy.buffer(CHUNKSIZE);
            byte[] buffer=oy.data;
            //  int bytes=callbacks.read_func(buffer, index, 1, CHUNKSIZE, datasource);
            int bytes=0;
            try
            {
                bytes=datasource.Read(buffer, index, CHUNKSIZE);
            }
            catch(Exception e)
            {
                Console.Error.WriteLine(e.Message);
                return OV_EREAD;
            }
            oy.wrote(bytes);
            if(bytes==-1)
            {
                bytes=0;
            }
            return bytes;
        }