VorbisComment.h 471 B

12345678910111213141516171819
  1. /*
  2. * Copyright (c) 2023, kleines Filmröllchen <filmroellchen@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <AK/ByteBuffer.h>
  8. #include <LibAudio/LoaderError.h>
  9. #include <LibAudio/Metadata.h>
  10. namespace Audio {
  11. // https://www.xiph.org/vorbis/doc/v-comment.html
  12. ErrorOr<Metadata, LoaderError> load_vorbis_comment(ByteBuffer const& vorbis_comment);
  13. ErrorOr<void> write_vorbis_comment(Metadata const& metadata, Stream& target);
  14. }