Ejemplo n.º 1
0
        public void TestFramePosParsedFrame()
        {
            string dirName = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
            string path    = Path.Combine(dirName, "bensound-scifi.mp3");

            Mpg123 mpg123 = new Mpg123();

            mpg123.Open(path);

            byte[] buffer = null;
            int    num    = 0;
            uint   bytes  = 0;

            mpg123.DecodeFrame(ref num, ref buffer, ref bytes);

            Assert.That(mpg123.FramePos(), Is.GreaterThan(0));
        }
Ejemplo n.º 2
0
        public void TestFramePosNoParsedFrame()
        {
            Mpg123 mpg123 = new Mpg123();

            Assert.That(mpg123.FramePos(), Is.EqualTo(-1));
        }