mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:57:44 +00:00
Kernel: First cut of a sb16 driver
Also add an AudioServer that (right now) doesn't do much. It tries to open, parse, and play a wav file. In the future, it can do more. My general thinking here here is that /dev/audio will be "owned" by AudioServer, and we'll do mixing in software before passing buffers off to the kernel to play, but we have to start somewhere.
This commit is contained in:
parent
6e671f78a8
commit
6c4024c04a
11 changed files with 436 additions and 4 deletions
|
@ -20,7 +20,8 @@ elif [ "$1" = "qn" ]; then
|
|||
-kernel kernel \
|
||||
-append "${SERENITY_KERNEL_CMDLINE}" \
|
||||
-hda _disk_image \
|
||||
-soundhw pcspk
|
||||
-soundhw pcspk \
|
||||
-soundhw sb16
|
||||
elif [ "$1" = "qtap" ]; then
|
||||
# ./run qtap: qemu with tap
|
||||
sudo $SERENITY_QEMU_BIN -s -m ${SERENITY_RAM_SIZE:-128} \
|
||||
|
@ -34,7 +35,8 @@ elif [ "$1" = "qtap" ]; then
|
|||
-kernel kernel \
|
||||
-append "${SERENITY_KERNEL_CMDLINE}" \
|
||||
-hda _disk_image \
|
||||
-soundhw pcspk
|
||||
-soundhw pcspk \
|
||||
-soundhw sb16
|
||||
elif [ "$1" = "qgrub" ]; then
|
||||
# ./run qgrub: qemu with grub
|
||||
$SERENITY_QEMU_BIN -s -m ${SERENITY_RAM_SIZE:-128} \
|
||||
|
@ -60,6 +62,7 @@ else
|
|||
-kernel kernel \
|
||||
-append "${SERENITY_KERNEL_CMDLINE}" \
|
||||
-hda _disk_image \
|
||||
-soundhw pcspk
|
||||
-soundhw pcspk \
|
||||
-soundhw sb16
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue