Age | Commit message (Collapse) | Author |
|
|
|
|
|
This makes things look a little more neat in Inspector. :^)
|
|
We should default to double-precision so that clients can make the
choice to use float or double.
|
|
We shouldn't just ASSERT() if the header parse fails. This was crashing
Piano completely.
|
|
Draw two waves in different colors.
|
|
|
|
|
|
Letting GUI::Frame::paint_event() cover up your mistakes is tacky :P
|
|
|
|
This commit adds basic support for importing, viewing and playing WAV
samples at different pitches.
Naming issues:
- We are using the Sample struct from Music.h, but also the Sample
struct from LibAudio (Audio::Sample). This is a little confusing.
set_recorded_sample() finds the peak sample and then divides all the
samples by that peak to get a guaranteed min/max of -1/1. This is nice
because our other waves are also bound between these values and we can
just do the same stuff. This is why we're using Audio::Sample, because
it uses floats, whereas Music.h's Sample uses i16s. It's a little
annoying that we have to use a mixture of floats and doubles though.
For playback at lower frequencies, we're calculating in-between samples,
rather than just playing samples multiple times. Basically, you get the
current sample and add the difference between the current sample and the
next sample multiplied by the distance from the current sample. This is
like drawing the hypotenuse of a right-angled triangle.
|
|
This is causing build errors for myself and a few other people.
This config option disables the SDL2 port from trying to compile
with the JACK audio server (which we don't need).
|
|
|
|
This was only used by HashTable::dump() which I used when doing the
first HashTable implementation. Removing this allows us to also remove
most includes of <AK/kstdio.h>.
|
|
chown takes 2 arguments, not 1.
|
|
lint-shell-scripts searches over the repository looking for shell
scripts. On those found, shellcheck is run against them. If any linting
fails print those warnings and exit with a non-zero exit code.
Run this script automatically in Travis.
|
|
Warnings fixed:
* SC2086: Double quote to prevent globbing and word splitting.
* SC2006: Use $(...) notation instead of legacy backticked `...`
* SC2039: In POSIX sh, echo flags are undefined
* SC2209: Use var=$(command) to assign output (or quote to assign string)
* SC2164: Use 'cd ... || exit' or 'cd ... || return' in case cd fails
* SC2166: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
* SC2034: i appears unused. Verify use (or export if used externally)
* SC2046: Quote this to prevent word splitting.
* SC2236: Use -z instead of ! -n.
There are still a lot of warnings in Kernel/run about:
- SC2086: Double quote to prevent globbing and word splitting.
However, splitting on space is intentional in this case, and not trivial to
change. Therefore ignore the warning for now - but we should fix this in
the future.
|
|
Fixes #1198
|
|
|
|
|
|
Add classes of VirtualAddress & PhysicalAddress.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Fixes #1200.
|
|
This makes it possible to open http://localhost:8000/ in Browser. :^)
|
|
This makes it easier to observe the protocol in packet logs.
|
|
|
|
This server listens on port 8000 and serves HTML files from /www.
It's very simple and quite naive, but I think we can start here and
build our way to something pretty neat.
Work towards #792.
|
|
Otherwise the routing decision gets interpreted as "host unreachable."
|
|
Since the routing code currently interprets an all-zero MAC address as
an invalid next hop, let's give the loopback adapter an address.
|
|
|
|
This was an artifact of an earlier design of StringBuilder where I had
attempted to preserve the same allocation from build to final String.
|
|
This patch adds a very simple HTTP request parser that can be useful
for implementing say.. a web server. :^)
|
|
|
|
Now, we have UserName applet.
|
|
Move code from WindowServer.WSMenuManager to the applet.
|
|
If parsing a command causes us to disconnect the client, we have to
defer deletion of the Client object until we're done with the socket.
|
|
|
|
|
|
This allows clients to get their EOF after shutting down reading.
|
|
We can now participate in the TCP connection closing handshake. :^)
This implementation is definitely not complete and needs to handle a
bunch of other cases. But it's a huge improvement over not being able
to close connections at all.
Note that we hold on to pending-close sockets indefinitely, until they
are moved into the Closed state. This should also have a timeout but
that's still a FIXME. :^)
Fixes #428.
|
|
If we're running more on a TTY that we don't have filesystem access to,
we can't rely on open(ttyname(STDOUT_FILENO)). Since all the stdio fd's
are opened read/write anyway, we can just read from stdout, even if it
feels a bit weird. :^)
|
|
Wireshark was complaining about duplicate ACK's and this was why.
|
|
This code was really hard to follow since it handles two separate modes
of buffering the data.
|
|
It doesn't look healthy to create raw references into an array before
a temporary unlock. In fact, that temporary unlock looks generally
unhealthy, but it's a different problem.
|
|
Add PageTableEntry::clear() to zero out a whole PTE, and use that for
unmapping instead of clearing individual fields.
|