mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-13 03:29:11 +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
|
@ -18,7 +18,7 @@ class AlsaSound final : public SoundStream
|
|||
{
|
||||
#if defined(HAVE_ALSA) && HAVE_ALSA
|
||||
public:
|
||||
AlsaSound(CMixer *mixer);
|
||||
AlsaSound();
|
||||
virtual ~AlsaSound();
|
||||
|
||||
virtual bool Start() override;
|
||||
|
@ -49,8 +49,5 @@ private:
|
|||
|
||||
snd_pcm_t *handle;
|
||||
int frames_to_deliver;
|
||||
#else
|
||||
public:
|
||||
AlsaSound(CMixer *mixer) : SoundStream(mixer) {}
|
||||
#endif
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue