用什么控件可以直接播放内存里的数据,mediaplayer是肯定不行,有没有什么组件可以呀!大哥们求求大家了,解决以后高分相赠

解决方案 »

  1.   

    自己先顶一下,我现在在想DSPACK,MMtools,不知道行不行,行的话怎么用控件谢谢
      

  2.   

    用playsound函数,在mmsystem中定义,
    第三个参数加上snd_memory,指定内存中的映像,详细地说明如下:
    例子:playSound(pchar(voiceName), 0, snd_memory or snd_async or ....))
    BOOL PlaySound(LPCSTR pszSound, HMODULE hmod, DWORD fdwSound); Plays a sound specified by the given filename, resource, or system event. (A system event may be associated with a sound in the registry or in the WIN.INI file.) ?Returns TRUE if successful or FALSE otherwise.