BCB资源文件中的声音为什么不能全程播放只播放1分钟解决方法

BCB资源文件中的声音为什么不能全程播放只播放1分钟
资源文件test.rc的内容如下:
DEMO WAV "G:\\sound\\13.wav"
下面是程序代码,编译后能播放13.wav声音,可是只能播放约1分钟,就自动停止了,
而13.wav声音文件的全长是3分多钟,请帮忙分析一下原因,多谢。

#include <vcl.h>
#pragma hdrstop
#pragma resource "test.res"
#include "Unit1.h"
//---------------------------------------
#include "mmsystem.h"
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
  : TForm(Owner)
{

}
void __fastcall TForm1::Button1Click(TObject *Sender)
{
  char *ww;
  HRSRC h=FindResource(HInstance,"DEMO","WAV");
  HGLOBAL h1=LoadResource(HInstance,h);
  ww=(char*)LockResource(h1);
  sndPlaySound(ww,SND_MEMORY|SND_SYNC);
}

------解决方案--------------------
是不是资源文件过大?
试试PlaySound吧

我是搜索到你的贴子后,再F1看Help而选用PlaySound的。别忘了这一句:
#include "mmSystem.h"