The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Audio::Opusfile::Tags - The tags of an Ogg Opus file

SYNOPSIS

  use Audio::Opusfile;
  my $of = Audio::Opusfile->new_from_file('file.opus');
  my $tags = $of->tags;
  say $tags->query("COMPOSER"); # Composer 1
  say $tags->query_count("COMPOSER"); # 3
  say join ", ", $tags->query_all("COMPOSER");
  # Composer 1, Composer 2, Composer 3

DESCRIPTION

This module represents the tags of an Ogg Opus file. See the documentation of Audio::Opusfile for more information.

METHODS

$tags->query_count($tag)

Returns the number of values of a tag.

$tags->query($tag[, $index])

Returns the $indexth value of a tag. If $index is not provided, the first value is returned.

$tags->query_all($tag)

Returns a list of all values of a tag, in order.

SEE ALSO

Audio::Opusfile, http://opus-codec.org/, http://opus-codec.org/docs/opusfile_api-0.7/index.html

AUTHOR

Marius Gavrilescu, <marius@ieval.ro>

COPYRIGHT AND LICENSE

Copyright (C) 2016-2017 by Marius Gavrilescu

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.24.0 or, at your option, any later version of Perl 5 you may have available.