ladybird/Libraries
William McPherson 82d17d2c79 LibAudio: Implement Audio::WavWriter
This class mirrors WavLoader and uses the same variable names so they
can be read side-by-side.

In a simple use-case, you construct a WavWriter object with your file
path and audio parameters, call write_samples() with your bytes and then
either finalize() to finish writing the file or allow the destructor to
do it automatically.

finalize() is needed because the WAV header cannot be written until the
size of the data section is known. You only need to call this manually
if you want to write a WAV file and then immediately load it.

You can also use one WavWriter instance multiple times by repeatedly
calling finalize() and set_file().
2020-02-06 19:13:53 +01:00
..
LibAudio LibAudio: Implement Audio::WavWriter 2020-02-06 19:13:53 +01:00
LibC LibC: Add posix_openpt(), grantpt() and unlockpt() 2020-02-05 21:17:41 +01:00
LibCore LibCore: Merge the CSyscallUtils namespace into Core 2020-02-06 15:04:57 +01:00
LibELF LibGfx: Unpublish Gfx::Size from the global namespace 2020-02-06 13:32:14 +01:00
LibGfx LibCore: Remove leading C from filenames 2020-02-06 15:04:03 +01:00
LibGUI LibCore: Remove leading C from filenames 2020-02-06 15:04:03 +01:00
LibHTML LibCore: Remove leading C from filenames 2020-02-06 15:04:03 +01:00
LibIPC LibCore: Merge the CSyscallUtils namespace into Core 2020-02-06 15:04:57 +01:00
LibM LibM: Install immediately after building 2020-02-06 14:28:35 +01:00
LibMarkdown Meta: Claim copyright for files created by me 2020-01-24 15:15:16 +01:00
LibPCIDB Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
LibProtocol LibIPC: Remove leading I from filenames 2020-02-06 14:54:09 +01:00
LibPthread LibPthread: Install immediately after building 2020-02-06 14:29:07 +01:00
LibThread LibCore: Remove leading C from filenames 2020-02-06 15:04:03 +01:00
LibVT LibCore: Remove leading C from filenames 2020-02-06 15:04:03 +01:00
Makefile Build: clean up build system, use one shared Makefile 2019-12-20 20:20:54 +01:00