mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 00:59:44 -06:00
Move audio handling out of DSP emulation.
This is good for a couple of reasons: one, it gets rid of duplicated code, and two, DSP emulation shouldn't need to interact with audio in the first place.
This commit is contained in:
@ -4,7 +4,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "AudioCommon/SoundStream.h"
|
||||
#include "Common/ChunkFile.h"
|
||||
|
||||
class DSPEmulator
|
||||
@ -26,15 +25,9 @@ public:
|
||||
virtual unsigned short DSP_ReadMailBoxLow(bool _CPUMailbox) = 0;
|
||||
virtual unsigned short DSP_ReadControlRegister() = 0;
|
||||
virtual unsigned short DSP_WriteControlRegister(unsigned short) = 0;
|
||||
virtual void DSP_SendAIBuffer(unsigned int address, unsigned int num_samples) = 0;
|
||||
virtual void DSP_Update(int cycles) = 0;
|
||||
virtual void DSP_StopSoundStream() = 0;
|
||||
virtual void DSP_ClearAudioBuffer(bool mute) = 0;
|
||||
virtual u32 DSP_UpdateRate() = 0;
|
||||
|
||||
protected:
|
||||
SoundStream *soundStream;
|
||||
void *m_hWnd;
|
||||
};
|
||||
|
||||
DSPEmulator *CreateDSPEmulator(bool HLE);
|
||||
|
Reference in New Issue
Block a user