Beispiel #1
0
        public void TestSetParamGetParam()
        {
            long   setValue  = 2;
            long   getValue  = 0;
            double getFValue = 0;

            string dirName = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
            string path    = dirName + "/bensound-epic.mp3";

            Mpg123 mpg123 = new Mpg123();

            mpg123.Open(path);

            mpg123.SetParam(Mpg123.Mpg123Params.MPG123_DOWNSPEED, setValue);
            mpg123.GetParam(Mpg123.Mpg123Params.MPG123_DOWNSPEED, ref getValue, ref getFValue);

            Assert.That(getValue, Is.EqualTo(2));
            Assert.That(getFValue, Is.EqualTo(0));
        }