mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-23 10:50:01 +00:00
A bunch of trivial changes to fix clang warnings.
This commit is contained in:
parent
d41eb76378
commit
fd7cf5bb71
26 changed files with 20 additions and 37 deletions
|
@ -14,8 +14,12 @@
|
|||
#include <string.h>
|
||||
#include "DPL2Decoder.h"
|
||||
|
||||
#ifndef M_PI
|
||||
#define M_PI 3.14159265358979323846
|
||||
#endif
|
||||
#ifndef M_SQRT1_2
|
||||
#define M_SQRT1_2 0.70710678118654752440
|
||||
#endif
|
||||
|
||||
int olddelay = -1;
|
||||
unsigned int oldfreq = 0;
|
||||
|
|
|
@ -210,7 +210,7 @@ unsigned int CMixer::GetNumSamples()
|
|||
u32 numSamples = ((Common::AtomicLoad(m_indexW) - Common::AtomicLoad(m_indexR)) & INDEX_MASK) / 2;
|
||||
|
||||
if (AudioInterface::GetAIDSampleRate() == m_sampleRate)
|
||||
numSamples = numSamples; // 1:1
|
||||
; //numSamples = numSamples; // 1:1
|
||||
else if (m_sampleRate == 48000 && AudioInterface::GetAIDSampleRate() == 32000)
|
||||
numSamples = numSamples * 3 / 2 - 2; // most common case
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue