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:
Lioncash
2015-05-24 04:13:02 -04:00
parent a6e5fd1e27
commit 35ee8a1362
18 changed files with 40 additions and 123 deletions

View File

@ -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
};