|
From: Charles L. <cn...@us...> - 2009-04-17 05:56:14
|
Update of /cvsroot/hgengine/Mercury/src In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv17790/src Modified Files: MercurySoundDriverWin32.cpp Log Message: fix: Windows Vista and 7 require a properly formatted block alignment Index: MercurySoundDriverWin32.cpp =================================================================== RCS file: /cvsroot/hgengine/Mercury/src/MercurySoundDriverWin32.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** MercurySoundDriverWin32.cpp 23 Oct 2008 05:28:03 -0000 1.5 --- MercurySoundDriverWin32.cpp 17 Apr 2009 05:55:55 -0000 1.6 *************** *** 61,65 **** waveFormat.nSamplesPerSec = m_rate; waveFormat.wBitsPerSample = 16; ! waveFormat.nBlockAlign = 1; waveFormat.nAvgBytesPerSec = 0; m_bEnableOutput = true; --- 61,65 ---- waveFormat.nSamplesPerSec = m_rate; waveFormat.wBitsPerSample = 16; ! waveFormat.nBlockAlign = 4; waveFormat.nAvgBytesPerSec = 0; m_bEnableOutput = true; |