summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Servers/AudioServer/ASMixer.cpp6
-rw-r--r--Servers/AudioServer/ASMixer.h4
2 files changed, 8 insertions, 2 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);
diff --git a/Servers/AudioServer/ASMixer.h b/Servers/AudioServer/ASMixer.h
index fbd9f101f1..bcbd32bb5e 100644
--- a/Servers/AudioServer/ASMixer.h
+++ b/Servers/AudioServer/ASMixer.h
@@ -48,9 +48,11 @@ private:
WeakPtr<ASClientConnection> m_client;
};
-class ASMixer : public RefCounted<ASMixer> {
+class ASMixer : public CObject {
+ C_OBJECT(ASMixer)
public:
ASMixer();
+ virtual ~ASMixer() override;
NonnullRefPtr<ASBufferQueue> create_queue(ASClientConnection&);