ladybird/Libraries/LibAudio
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
..
Buffer.h LibAudio: Remove leading A from filenames 2020-02-06 15:18:03 +01:00
ClientConnection.cpp LibAudio: Remove leading A from filenames 2020-02-06 15:18:03 +01:00
ClientConnection.h LibAudio: Remove leading A from filenames 2020-02-06 15:18:03 +01:00
Makefile LibAudio: Implement Audio::WavWriter 2020-02-06 19:13:53 +01:00
WavLoader.cpp LibAudio: Remove leading A from filenames 2020-02-06 15:18:03 +01:00
WavLoader.h LibAudio: Remove leading A from filenames 2020-02-06 15:18:03 +01:00
WavWriter.cpp LibAudio: Implement Audio::WavWriter 2020-02-06 19:13:53 +01:00
WavWriter.h LibAudio: Implement Audio::WavWriter 2020-02-06 19:13:53 +01:00