using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
namespace 控制台_无界面
{
    public static class Mp3Player
    {
        // Token: 0x06000E1A RID: 3610
        [DllImport("winmm.dll")]
        private static extern long mciSendString(string strCommand, StringBuilder strReturn, int iReturnLength, IntPtr callback);
        // Token: 0x06000E1B RID: 3611 RVA: 0x0003FF50 File Offset: 0x0003E150
        public static void Play(string MP3_FileName, bool Repeat)
        {
            Mp3Player.mciSendString("open \"" + MP3_FileName + "\" type mpegvideo alias MediaFile", null, 0, IntPtr.Zero);
            Mp3Player.mciSendString("play MediaFile" + (Repeat ? " repeat" : string.Empty), null, 0, IntPtr.Zero);
        }
        // Token: 0x06000E1C RID: 3612 RVA: 0x0003FFA1 File Offset: 0x0003E1A1
        public static void Pause()
        {
            Mp3Player.mciSendString("stop MediaFile", null, 0, IntPtr.Zero);
        }
        // Token: 0x06000E1D RID: 3613 RVA: 0x0003FFB6 File Offset: 0x0003E1B6
        public static void Stop()
        {
            Mp3Player.mciSendString("close MediaFile", null, 0, IntPtr.Zero);
        }
    }
}
