mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:17:35 +00:00
Kernel: Teach DeviceManagement to handle multiple audio devices
This commit is contained in:
parent
61d77274db
commit
1aafb6cd23
4 changed files with 9 additions and 9 deletions
|
@ -84,7 +84,9 @@ UNMAP_AFTER_INIT RefPtr<SB16> SB16::try_detect_and_create()
|
|||
auto device_or_error = DeviceManagement::try_create_device<SB16>();
|
||||
if (device_or_error.is_error())
|
||||
return {};
|
||||
return device_or_error.release_value();
|
||||
auto device = device_or_error.release_value();
|
||||
DeviceManagement::the().attach_audio_device(device);
|
||||
return device;
|
||||
}
|
||||
|
||||
UNMAP_AFTER_INIT void SB16::initialize()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue