Direct sound 播放大文件 有噪音问题(100分)
程序实现方法:
线城函数()
{
unsigned char* pa = new unsigned char[length];
pa = GetData();
dsound->filldata();
while (1)
{
if (dsound->isplay())
continus;
dsound->play();
pa = GetData();
dsound->filldata();
}
}
问题:
我每次得到1秒钟的数据,为什么声音会出现“扑哧”的噪音或停顿。