diff options
author | Liav A <liavalb@gmail.com> | 2022-02-11 21:50:18 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-14 11:39:19 +0100 |
commit | bf8c93fe0a4d66890d56d759afff3a943c07f634 (patch) | |
tree | 01b047093dcb6a948c50d5e4d0e6f56c7d513927 /Userland/Services | |
parent | a1f3a48ed5d4941ad76e01960471437751ac0dfa (diff) | |
download | serenity-bf8c93fe0a4d66890d56d759afff3a943c07f634.zip |
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.
Diffstat (limited to 'Userland/Services')
-rw-r--r-- | Userland/Services/AudioServer/Mixer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<Core::ConfigFile> 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(); |