From ff9fcce383121c4f2e0707a71321825461bc07f6 Mon Sep 17 00:00:00 2001 From: nakeee Date: Thu, 26 Mar 2009 10:15:11 +0000 Subject: [PATCH] small windows compile fix git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2757 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/AudioCommon/AudioCommon.vcproj | 13 +++++++++++-- Source/Core/AudioCommon/Src/AudioCommon.h | 2 +- Source/Core/AudioCommon/Src/DSoundStream.cpp | 2 +- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/Source/Core/AudioCommon/AudioCommon.vcproj b/Source/Core/AudioCommon/AudioCommon.vcproj index a0fb3ed7eb..22724ae219 100644 --- a/Source/Core/AudioCommon/AudioCommon.vcproj +++ b/Source/Core/AudioCommon/AudioCommon.vcproj @@ -410,13 +410,22 @@ + + + + + diff --git a/Source/Core/AudioCommon/Src/AudioCommon.h b/Source/Core/AudioCommon/Src/AudioCommon.h index f834941a28..6bd1fe09f1 100644 --- a/Source/Core/AudioCommon/Src/AudioCommon.h +++ b/Source/Core/AudioCommon/Src/AudioCommon.h @@ -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; diff --git a/Source/Core/AudioCommon/Src/DSoundStream.cpp b/Source/Core/AudioCommon/Src/DSoundStream.cpp index 82f7bcdc15..4f98433826 100644 --- a/Source/Core/AudioCommon/Src/DSoundStream.cpp +++ b/Source/Core/AudioCommon/Src/DSoundStream.cpp @@ -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;