mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06: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:
@ -18,7 +18,7 @@ class PulseAudio final : public SoundStream
|
||||
{
|
||||
#if defined(HAVE_PULSEAUDIO) && HAVE_PULSEAUDIO
|
||||
public:
|
||||
PulseAudio(CMixer *mixer);
|
||||
PulseAudio();
|
||||
|
||||
virtual bool Start() override;
|
||||
virtual void Stop() override;
|
||||
@ -56,8 +56,5 @@ private:
|
||||
pa_context *m_pa_ctx;
|
||||
pa_stream *m_pa_s;
|
||||
pa_buffer_attr m_pa_ba;
|
||||
#else
|
||||
public:
|
||||
PulseAudio(CMixer *mixer) : SoundStream(mixer) {}
|
||||
#endif
|
||||
};
|
||||
|
Reference in New Issue
Block a user