From bf8c93fe0a4d66890d56d759afff3a943c07f634 Mon Sep 17 00:00:00 2001 From: Liav A Date: Fri, 11 Feb 2022 21:50:18 +0200 Subject: [PATCH] AudioServer: Use first audio channel in the /dev/audio directory For now, just use the first audio channel in the /dev/audio directory. In the future we can add support for watching and loading other channels so we can route audio to multiple sound cards on the system. --- Userland/Services/AudioServer/Mixer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Userland/Services/AudioServer/Mixer.cpp b/Userland/Services/AudioServer/Mixer.cpp index 6d8cc925c7..756804ebba 100644 --- a/Userland/Services/AudioServer/Mixer.cpp +++ b/Userland/Services/AudioServer/Mixer.cpp @@ -23,7 +23,8 @@ namespace AudioServer { u8 Mixer::m_zero_filled_buffer[4096]; Mixer::Mixer(NonnullRefPtr config) - : m_device(Core::File::construct("/dev/audio", this)) + // FIXME: Allow AudioServer to use other audio channels as well + : m_device(Core::File::construct("/dev/audio/0", this)) , m_sound_thread(Threading::Thread::construct( [this] { mix();