1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:37:36 +00:00

LibAudio: Detect and read FLAC metadata

FLAC uses the very simple vorbis comment metadata format, which we can
now read most standard and non-standard fields from.
This commit is contained in:
kleines Filmröllchen 2023-03-07 16:58:01 +01:00 committed by Tim Flynn
parent d8e8ddedf3
commit a8963a270f
5 changed files with 160 additions and 1 deletions

View file

@ -0,0 +1,18 @@
/*
* Copyright (c) 2023, kleines Filmröllchen <filmroellchen@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/ByteBuffer.h>
#include <LibAudio/LoaderError.h>
#include <LibAudio/Metadata.h>
namespace Audio {
// https://www.xiph.org/vorbis/doc/v-comment.html
ErrorOr<Metadata, LoaderError> load_vorbis_comment(ByteBuffer const& vorbis_comment);
}