root/trunk/lib/MT/Asset/Audio.pm

Revision 5151, 0.8 kB (checked in by takayama, 2 months ago)

* Merged latest changes From G2. svn merge -r 5094:5145 http://code.sixapart.com/svn/movabletype/branches/g2/

  • Property svn:keywords set to Author Date Id Revision
Line 
1# Movable Type (r) Open Source (C) 2001-2010 Six Apart, Ltd.
2# This program is distributed under the terms of the
3# GNU General Public License, version 2.
4#
5# $Id$
6
7package MT::Asset::Audio;
8
9use strict;
10use base qw( MT::Asset );
11
12__PACKAGE__->install_properties( { class_type => 'audio', } );
13
14# List of supported file extensions (to aid the stock 'can_handle' method.)
15sub extensions {
16    my $pkg = shift;
17    return $pkg->SUPER::extensions(
18        [   qr/mp3/i, qr/ogg/i, qr/aiff?/i, qr/wav/i,
19            qr/wma/i, qr/aac/i, qr/flac/i,  qr/m4a/i
20        ]
21    );
22}
23
24sub class_label {
25    MT->translate('Audio');
26}
27
28sub class_label_plural {
29    MT->translate('Audio');
30}
31
32# translate('audio')
33
341;
35
36__END__
37
38=head1 NAME
39
40MT::Asset::Audio
41
42=head1 AUTHOR & COPYRIGHT
43
44Please see the L<MT/"AUTHOR & COPYRIGHT"> for author, copyright, and
45license information.
46
47=cut
Note: See TracBrowser for help on using the browser.