small windows compile fix

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2757 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee 2009-03-26 10:15:11 +00:00
parent fff663e8c7
commit ff9fcce383
3 changed files with 13 additions and 4 deletions

View File

@ -410,13 +410,22 @@
</References>
<Files>
<File
RelativePath=".\Src\AOSoundStream.cpp"
RelativePath=".\Src\AudioCommon.cpp"
>
</File>
<File
RelativePath=".\Src\AOSoundStream.h"
RelativePath=".\Src\AudioCommon.h"
>
</File>
<File
RelativePath=".\Src\AOSoundStream.cpp"
>
</File>
<File
RelativePath=".\Src\AOSoundStream.h"
>
</File>
<File
RelativePath=".\Src\DSoundStream.cpp"
>

View File

@ -2,7 +2,7 @@
#define _AUDIO_COMMON_H
#include "Common.h"
#include "pluginspecs_dsp.h"
#include "../../../PluginSpecs/pluginspecs_dsp.h"
#include "SoundStream.h"
class CMixer;

View File

@ -31,7 +31,7 @@ bool DSound::CreateBuffer()
pcmwf.wf.wFormatTag = WAVE_FORMAT_PCM;
pcmwf.wf.nChannels = 2;
pcmwf.wf.nSamplesPerSec = sampleRate;
pcmwf.wf.nSamplesPerSec = m_mixer->GetSampleRate();
pcmwf.wf.nBlockAlign = 4;
pcmwf.wf.nAvgBytesPerSec = pcmwf.wf.nSamplesPerSec * pcmwf.wf.nBlockAlign;
pcmwf.wBitsPerSample = 16;