mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-09 17:49:01 +00:00
AudioCommon: move DPL2 decoding into Mixer
This commit is contained in:
parent
0e6bd74ed6
commit
a4508e85e8
5 changed files with 43 additions and 54 deletions
|
@ -21,6 +21,7 @@ public:
|
|||
|
||||
// Called from audio threads
|
||||
unsigned int Mix(short* samples, unsigned int numSamples);
|
||||
unsigned int MixSurround(float* samples, unsigned int num_samples);
|
||||
|
||||
// Called from main thread
|
||||
void PushSamples(const short* samples, unsigned int num_samples);
|
||||
|
@ -87,6 +88,7 @@ private:
|
|||
double m_stretch_ratio = 1.0;
|
||||
std::array<short, 2> m_last_stretched_sample = {};
|
||||
std::array<short, MAX_SAMPLES * 2> m_stretch_buffer;
|
||||
std::array<float, MAX_SAMPLES * 2> m_float_conversion_buffer;
|
||||
|
||||
WaveFileWriter m_wave_writer_dtk;
|
||||
WaveFileWriter m_wave_writer_dsp;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue