ladybird/Userland
Robin Burchell 2df6f0e87f Work on AudioServer
The center of this is now an ABuffer class in LibAudio.
ABuffer contains ASample, which has two channels (left/right) in
floating point for mixing purposes, in 44100hz.

This means that the loaders (AWavLoader in this case) needs to do some
manipulation to get things in the right format, but that we don't need
to care after format loading is done.

While we're at it, do some correctness fixes. PCM data is unsigned if
it's 8 bit, but 16 bit is signed. And /dev/audio also wants signed 16
bit audio, so give it what it wants.

On top of this, AudioServer now accepts requests to play a buffer.
The IPC mechanism here is pretty much a 1:1 copy-paste from
LibGUI/WindowServer. It can be generalized more in the future, but for
now I want to get AudioServer working decently first :)

Additionally, add a little "aplay" tool to load and play a WAV file. It
will break with large WAVs (run out of memory, heh...) but it's a start.

Future work needs to make AudioServer block buffer submission from
clients until it has played the buffer they are requesting to play.
2019-07-17 09:39:31 +02:00
..
al.cpp Userland: Fix many compiler warnings. 2019-06-22 15:47:08 +02:00
allocate.cpp Userland: Fix more compiler warnings. 2019-06-22 16:13:47 +02:00
aplay.cpp Work on AudioServer 2019-07-17 09:39:31 +02:00
basename.cpp Userland: Add a /bin/basename program. 2019-04-15 13:57:09 +02:00
cat.cpp Userland: Run clang-format on everything. 2019-06-07 11:49:31 +02:00
chmod.cpp chmod: Add understanding of simple permission strings. (#295) 2019-07-13 19:36:02 +02:00
chown.cpp Userland: Run clang-format on everything. 2019-06-07 11:49:31 +02:00
clear.cpp Userland: Run clang-format on everything. 2019-06-07 11:49:31 +02:00
cp.cpp Userland: Run clang-format on everything. 2019-06-07 11:49:31 +02:00
crash.cpp AK: Rename the common integer typedefs to make it obvious what they are. 2019-07-03 21:20:13 +02:00
date.cpp Userland: Run clang-format on everything. 2019-06-07 11:49:31 +02:00
df.cpp AK: Rename the common integer typedefs to make it obvious what they are. 2019-07-03 21:20:13 +02:00
dmesg.cpp Userland: Run clang-format on everything. 2019-06-07 11:49:31 +02:00
echo.cpp Userland: Add a simple /bin/echo program. 2019-04-25 04:42:09 +02:00
env.cpp Userland: Run clang-format on everything. 2019-06-07 11:49:31 +02:00
false.cpp Build LibC and Userland with clang as well. 2018-11-09 14:29:00 +01:00
fgrep.cpp Userland: Run clang-format on everything. 2019-06-07 11:49:31 +02:00
guitest2.cpp Userland: Run clang-format on everything. 2019-06-07 11:49:31 +02:00
head.cpp Userland: Fix many compiler warnings. 2019-06-22 15:47:08 +02:00
host.cpp Userland: Run clang-format on everything. 2019-06-07 11:49:31 +02:00
hostname.cpp Userland: Run clang-format on everything. 2019-06-07 11:49:31 +02:00
id.cpp Userland: Fixed "id" usage error typo (#254) 2019-06-30 07:36:14 +02:00
ifconfig.cpp Kernel+Userland: Expose list of network adapters through /proc/netadapters. 2019-06-16 07:06:49 +02:00
jp.cpp Userland: Don't return an error when jp is run without arguments 2019-07-02 10:32:49 +02:00
kill.cpp Userland: Run clang-format on everything. 2019-06-07 11:49:31 +02:00
killall.cpp Userland+LibCore: Use CProcessStatisticsReader to implement top. 2019-07-10 13:56:28 +02:00
ln.cpp Userland: Fix many compiler warnings. 2019-06-22 15:47:08 +02:00
ls.cpp Userland: Fix more compiler warnings. 2019-06-22 16:13:47 +02:00
Makefile Work on AudioServer 2019-07-17 09:39:31 +02:00
mkdir.cpp Userland: Run clang-format on everything. 2019-06-07 11:49:31 +02:00
mknod.cpp Userland: Run clang-format on everything. 2019-06-07 11:49:31 +02:00
mm.cpp Userland: Run clang-format on everything. 2019-06-07 11:49:31 +02:00
more.cpp Userland: Run clang-format on everything. 2019-06-07 11:49:31 +02:00
mv.cpp Userland: Run clang-format on everything. 2019-06-07 11:49:31 +02:00
pape.cpp Userland: Fix many compiler warnings. 2019-06-22 15:47:08 +02:00
pidof.cpp Userland+LibCore: Use CProcessStatisticsReader to implement top. 2019-07-10 13:56:28 +02:00
ping.cpp Userland: Run clang-format on everything. 2019-06-07 11:49:31 +02:00
ps.cpp Userland: Run clang-format on everything. 2019-06-07 11:49:31 +02:00
rm.cpp Userland: Fix many compiler warnings. 2019-06-22 15:47:08 +02:00
rmdir.cpp Userland: Run clang-format on everything. 2019-06-07 11:49:31 +02:00
shutdown.cpp Userland: Fix many compiler warnings. 2019-06-22 15:47:08 +02:00
sleep.cpp Userland: Run clang-format on everything. 2019-06-07 11:49:31 +02:00
sort.cpp Userland: Fix more compiler warnings. 2019-06-22 16:13:47 +02:00
stat.cpp Userland: Run clang-format on everything. 2019-06-07 11:49:31 +02:00
strace.cpp AK: Rename the common integer typedefs to make it obvious what they are. 2019-07-03 21:20:13 +02:00
su.cpp Userland: Run clang-format on everything. 2019-06-07 11:49:31 +02:00
sync.cpp Add sync() syscall and a /bin/sync. 2018-12-20 00:39:29 +01:00
sysctl.cpp Userland: Fix many compiler warnings. 2019-06-22 15:47:08 +02:00
tail.cpp Userland: Fix more compiler warnings. 2019-06-22 16:13:47 +02:00
tc.cpp printf: Support %zu (the 'z' is really just ignored.) 2019-06-22 16:30:32 +02:00
tee.cpp Userland: Run clang-format on everything. 2019-06-07 11:49:31 +02:00
top.cpp top: Remove some unused code. 2019-07-10 15:22:42 +02:00
touch.cpp Userland: Run clang-format on everything. 2019-06-07 11:49:31 +02:00
tr.cpp Userland: Run clang-format on everything. 2019-06-07 11:49:31 +02:00
true.cpp Build LibC and Userland with clang as well. 2018-11-09 14:29:00 +01:00
tst.cpp Userland: Run clang-format on everything. 2019-06-07 11:49:31 +02:00
tty.cpp Fix all current build warnings in the userland. 2018-11-09 10:19:33 +01:00
uc.cpp Userland: Run clang-format on everything. 2019-06-07 11:49:31 +02:00
uname.cpp Userland: Run clang-format on everything. 2019-06-07 11:49:31 +02:00
uptime.cpp Userland: Run clang-format on everything. 2019-06-07 11:49:31 +02:00
wc.cpp Userland: Fix many compiler warnings. 2019-06-22 15:47:08 +02:00
whoami.cpp Userland: Add /bin/whoami 2019-05-16 20:18:17 +02:00
yes.cpp Userland: Add a /bin/yes program (fixes #110) 2019-06-01 12:16:55 +02:00