]>
iEval git - audio-opusfile.git/blob - lib/Audio/Opusfile/Tags.pm
1 package Audio
::Opusfile
::Tags
;
2 # Don't load this module directly, load Audio::Opusfile instead
7 use subs qw
/query query_count/;
10 my ($tags, $tag) = @_;
11 my $count = $tags->query_count($tag);
12 map { $tags->query($tag, $_ - 1) } 1 .. $count
22 Audio::Opusfile::Tags - The tags of an Ogg Opus file
27 my $of = Audio::Opusfile->new_from_file('file.opus');
29 say $tags->query("COMPOSER"); # Composer 1
30 say $tags->query_count("COMPOSER"); # 3
31 say join ", ", $tags->query_all("COMPOSER");
32 # Composer 1, Composer 2, Composer 3
36 This module represents the tags of an Ogg Opus file. See the
37 documentation of L<Audio::Opusfile> for more information.
43 =item $tags->B<query_count>(I<$tag>)
45 Returns the number of values of a tag.
47 =item $tags->B<query>(I<$tag>[, I<$index>])
49 Returns the I<$index>th value of a tag. If I<$index> is not provided,
50 the first value is returned.
52 =item $tags->B<query_all>(I<$tag>)
54 Returns a list of all values of a tag, in order.
61 L<http://opus-codec.org/>,
62 L<http://opus-codec.org/docs/opusfile_api-0.7/index.html>
66 Marius Gavrilescu, E<lt>marius@ieval.roE<gt>
68 =head1 COPYRIGHT AND LICENSE
70 Copyright (C) 2016 by Marius Gavrilescu
72 This library is free software; you can redistribute it and/or modify
73 it under the same terms as Perl itself, either Perl version 5.24.0 or,
74 at your option, any later version of Perl 5 you may have available.
This page took 0.042903 seconds and 4 git commands to generate.