mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Cleanup AOSoundStream, fix audio pitch in linux
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1536 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -19,10 +19,13 @@
|
||||
#include "StringUtil.h" // for StringFromFormat
|
||||
#include "../Debugger/Debugger.h"
|
||||
#include "../Logging/Console.h" // for aprintf
|
||||
|
||||
#include <sstream>
|
||||
|
||||
#ifdef _WIN32
|
||||
#include "../PCHW/DSoundStream.h"
|
||||
#else
|
||||
#include "../PCHW/AOSoundStream.h"
|
||||
#endif
|
||||
#include "../PCHW/Mixer.h"
|
||||
#include "../MailHandler.h"
|
||||
|
@ -22,7 +22,10 @@
|
||||
|
||||
#ifdef _WIN32
|
||||
#include "../PCHW/DSoundStream.h"
|
||||
#else
|
||||
#include "../PCHW/AOSoundStream.h"
|
||||
#endif
|
||||
|
||||
#include "../PCHW/Mixer.h"
|
||||
#include "../MailHandler.h"
|
||||
|
||||
|
@ -22,6 +22,11 @@
|
||||
#include "UCode_AX.h"
|
||||
#include "../main.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#include "../PCHW/DSoundStream.h"
|
||||
#else
|
||||
#include "../PCHW/AOSoundStream.h"
|
||||
#endif
|
||||
|
||||
// ----------------------------------------------------
|
||||
// Externals
|
||||
@ -108,7 +113,7 @@ inline void MixAddVoice(ParamBlockType &pb, int *templbuffer, int *temprbuffer,
|
||||
#ifdef _WIN32
|
||||
ratioFactor = 32000.0f / (float)DSound::DSound_GetSampleRate();
|
||||
#else
|
||||
ratioFactor = 32000.0f / 44100.0f;
|
||||
ratioFactor = 32000.0f / (float)AOSound::AOSound_GetSampleRate();
|
||||
#endif
|
||||
|
||||
DoVoiceHacks(pb, Wii);
|
||||
|
Reference in New Issue
Block a user