mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
SoundStream: Internally construct the mixer
Instead of creating the mixer externally and then passing it in, it can just be made within the class.
This commit is contained in:
parent
a6e5fd1e27
commit
35ee8a1362
18 changed files with 40 additions and 123 deletions
|
@ -51,7 +51,7 @@ private:
|
|||
static bool InitLibrary();
|
||||
|
||||
public:
|
||||
XAudio2(CMixer *mixer);
|
||||
XAudio2();
|
||||
virtual ~XAudio2();
|
||||
|
||||
virtual bool Start();
|
||||
|
@ -62,13 +62,5 @@ public:
|
|||
virtual void SetVolume(int volume);
|
||||
|
||||
static bool isValid() { return InitLibrary(); }
|
||||
|
||||
#else
|
||||
|
||||
public:
|
||||
XAudio2(CMixer *mixer)
|
||||
: SoundStream(mixer)
|
||||
{}
|
||||
|
||||
#endif
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue