mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Sound System Rework: Phase 1
. Fixed Sample Rate for DSP (Now if your CPU is capable to run game at 100%, you will get pure sound without buzz or static noise) . Fixed Sample Rate for AI (Now if your CPU is capable to run game at 100%, you will get sync'ed video and audio) . Fixed Backend list for DSPLLE . Improved Aduio DMA a bit (There might be a completely redesign in following phases) WARNING: The whole rework will take time to complete. This commit is compilable, but could be unstable. So you can try it and test it but don't take it as a release rev! git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4717 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -29,7 +29,17 @@
|
||||
class CMixer {
|
||||
|
||||
public:
|
||||
CMixer() : m_sampleRate(48000),m_bits(16),m_channels(2), m_mode(2), m_HLEready(false),m_queueSize(0) {}
|
||||
// AyuanX: Mixer sample rate is fixed to 32khz for now
|
||||
// if any game sets DSP sample rate to 48khz, we are doomed
|
||||
// TODO: Fix this somehow!
|
||||
CMixer(unsigned int SampleRate = 32000)
|
||||
: m_sampleRate(SampleRate)
|
||||
, m_bits(16)
|
||||
, m_channels(2)
|
||||
, m_mode(2)
|
||||
, m_HLEready(false)
|
||||
, m_queueSize(0)
|
||||
{}
|
||||
|
||||
// Called from audio threads
|
||||
virtual int Mix(short *sample, int numSamples);
|
||||
|
Reference in New Issue
Block a user