如果让程序播放wma音乐文件呢?
我现在要做一个将wma文件嵌入在程序中,但是发现C#自带的那个只能播放wav,不能播放wma,故前来请教各大侠。
前提:不掉用WMP控件(调用这个控件会调用到一个程序外的DLL,我想做的只是一个单EXE的程序)
我是想将WMA转成WAV,但没有找到这个算法,故现在还没有实现!请各大侠给力啊!!

解决方案 »

  1.   

    using System.Runtime.InteropServices;  public static uint SND_ASYNC = 0x0001;
      public static uint SND_FILENAME = 0x00020000; 
      [DllImport("winmm.dll")]
      public static extern uint mciSendString(string lpstrCommand,
      string lpstrReturnString, uint uReturnLength, uint hWndCallback);
      mciSendString(@"", null, 0, 0);
      mciSendString(@"",
      null, 0, 0);
      mciSendString("", null, 0, 0); sndPlaySound WAV
      

  2.   

    1楼+1,就是这几个windowsAPI,直接调用就可以播放了。
    你还要什么资源文件。