diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-08-18 12:56:36 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-08-18 12:56:36 +0200 |
commit | d5352b87b749609837bfc5387d65baa81806b22e (patch) | |
tree | 56efbf724688d5223bf26e1ae1192aac778ecc50 /Servers/AudioServer/ASMixer.cpp | |
parent | 8aa3b74f80fd321539e828cd106efba44926e5f6 (diff) | |
download | serenity-d5352b87b749609837bfc5387d65baa81806b22e.zip |
AudioServer: Turn ASMixer into a CObject
It was wrongly inheriting from RefCounted<AudioServer> without using
reference counting. Let's just make it a CObject instead.
Diffstat (limited to 'Servers/AudioServer/ASMixer.cpp')
-rw-r--r-- | Servers/AudioServer/ASMixer.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Servers/AudioServer/ASMixer.cpp b/Servers/AudioServer/ASMixer.cpp index f99b4c763a..799fedc7d5 100644 --- a/Servers/AudioServer/ASMixer.cpp +++ b/Servers/AudioServer/ASMixer.cpp @@ -5,7 +5,7 @@ #include <limits> ASMixer::ASMixer() - : m_device("/dev/audio") + : m_device("/dev/audio", this) { if (!m_device.open(CIODevice::WriteOnly)) { dbgprintf("Can't open audio device: %s\n", m_device.error_string()); @@ -20,6 +20,10 @@ ASMixer::ASMixer() this); } +ASMixer::~ASMixer() +{ +} + NonnullRefPtr<ASBufferQueue> ASMixer::create_queue(ASClientConnection& client) { LOCKER(m_lock); |