mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 04:38:49 +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
|
@ -13,15 +13,6 @@ class OpenSLESStream final : public SoundStream
|
|||
{
|
||||
#ifdef ANDROID
|
||||
public:
|
||||
OpenSLESStream(CMixer *mixer)
|
||||
: SoundStream(mixer)
|
||||
{
|
||||
}
|
||||
|
||||
virtual ~OpenSLESStream()
|
||||
{
|
||||
}
|
||||
|
||||
virtual bool Start();
|
||||
virtual void Stop();
|
||||
static bool isValid() { return true; }
|
||||
|
@ -29,11 +20,5 @@ public:
|
|||
private:
|
||||
std::thread thread;
|
||||
Common::Event soundSyncEvent;
|
||||
#else
|
||||
public:
|
||||
OpenSLESStream(CMixer *mixer)
|
||||
: SoundStream(mixer)
|
||||
{
|
||||
}
|
||||
#endif // HAVE_OPENSL
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue