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:
parent
d8e8ddedf3
commit
a8963a270f
5 changed files with 160 additions and 1 deletions
18
Userland/Libraries/LibAudio/VorbisComment.h
Normal file
18
Userland/Libraries/LibAudio/VorbisComment.h
Normal 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);
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue