Wma.pm

filter: Statementstmt 100% 26 / 26 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 9 / 9 Podpod 100% 1 / 1 totaltotal 95.0% 38 / 40 CC 3 SCAR 3.2
CC
3
Cov
93%
_create_tag
2.0
_create_audio_properties
2.0
BEGIN
1.0
CRAP 1.4
« Wma/Tag.pm ↑ Summary Wma/AudioProperties.pm »
1 package Audio::File::Wma;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use base qw( Audio::File::Type );
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use 5.8.8;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use Audio::File::Wma::Tag;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use Audio::File::Wma::AudioProperties;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 our $VERSION = '0.02';
11  
12 =head1 NAME
13  
14 Audio::File::Wma - represents a WMA/ASF audio file
15  
16 =head1 DESCRIPTION
17  
18 An extension to Audio::File enabling support for WMA/ASF files.
19  
20 Uses Audio::WMA internally to parse necessary information from the file.
21  
22 =head1 INSTALLATION ISSUES
23  
24 As of version v1.0 of L<Ogg::Vorbis::Header::PurePerl>, there are test failures that will prevent L<Audio::File> from installing without --force. There is a patch attached to the bugreport here, but I have not tested it: L<https://rt.cpan.org/Public/Bug/Display.html?id=43693>
25  
26 =head1 SEE ALSO
27  
28 L<Audio::WMA>, L<Audio::File>, L<Audio::File::Tag>, L<Audio::File::AudioProperties>
29  
30 =cut
31  
32 1 ▶sub init {
Subroutine init: called CC=1 SCAR=0.0
Pod documented
33 1 return 1;
34 }
35  
36 1 ▶sub _create_tag {
Subroutine _create_tag: called CC=2 SCAR=7.1
37 1 my $self = shift;
38 1 ▶ $self->{tag} = Audio::File::Wma::Tag->new( $self->name() ) or return;
Branch: 1 branch
BranchTrueFalseTotal
$self->{"tag"} = "Audio::File::Wma::Tag"->new($self->name) or return 1 0 1
39 1 return 1;
40 }
41  
42 1 ▶sub _create_audio_properties {
Subroutine _create_audio_properties: called CC=2 SCAR=7.1
43 1 my $self = shift;
44 1 ▶ $self->{audio_properties} = Audio::File::Wma::AudioProperties->new( $self->name() ) or return;
Branch: 1 branch
BranchTrueFalseTotal
$self->{"audio_properties"} = "Audio::File::Wma::AudioProperties"->new($self->name) or return 1 0 1
45 1 return 1;
46 }
47  
48 1 1;
49  
50 =head1 ACKNOWLEDGEMENTS
51  
52 Thanks to Florian Ragwitz for writing Audio::File
53  
54 =head1 AUTHORS
55  
56 Nathaniel Heinrichs E<lt>nheinric@cpan.orgE<gt>
57  
58 =head1 COPYRIGHT AND LICENSE
59  
60 Copyright (c) 2009 Nathaniel Heinrichs.
61 This program is free software; you can redistribute it and/or
62 modify it under the same terms as Perl itself.
63  
64 =cut
« Wma/Tag.pm ↑ Summary Wma/AudioProperties.pm »