title: How can I pause an MP3 file using C#?
body: <p>I have this class I found in a website:</p>
  
  <pre><code>class MP3Handler
  {
      private string _command;
      private bool isOpen;
      [DllImport("winmm.dll")]
  
      private static extern long mciSendString(string strCommand, StringBuilder strReturn, int iReturnLength, IntPtr hwndCallback);
  
      public void Close()
      {
          _command = "close MediaFile";
          mciSendString(_command, null, 0, IntPtr.Zero);
          isOpen = false;
      }
  
      public void Open(string sFileName)
      {
          _command = "open \"" + sFileName + "\" type mpegvideo alias MediaFile";
          mciSendString(_command, null, 0, IntPtr.Zero);
          isOpen = true;
      }
  
      public void Play(bool loop)
      {
          if (isOpen)
          {
              _command = "play MediaFile";
              if (loop)
                  _command += " REPEAT";
              mciSendString(_command, null, 0, IntPtr.Zero);
          }
      }
  }
  </code></pre>
  
  <p>Is has the methods for STOP and PLAY. I was wondering if anyone is familiar with the winmm.dll library. How can I pause the song as it's playing and then continue from where it was paused?</p>