mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 06:38:10 +00:00
LibAudio: Use Encoder interface for WavWriter
The only real change here is the fallibility of the finalization function, which makes WavWriter's code quite a bit nicer.
This commit is contained in:
parent
513e000e86
commit
ae039977d1
4 changed files with 12 additions and 15 deletions
|
@ -137,7 +137,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
}
|
||||
|
||||
if (writer.has_value())
|
||||
(*writer)->finalize();
|
||||
TRY((*writer)->finalize());
|
||||
if (output != "-"sv)
|
||||
outln();
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue