| 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 | |
|---|
| 7 | package MT::Asset::Audio; |
|---|
| 8 | |
|---|
| 9 | use strict; |
|---|
| 10 | use 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.) |
|---|
| 15 | sub 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 | |
|---|
| 24 | sub class_label { |
|---|
| 25 | MT->translate('Audio'); |
|---|
| 26 | } |
|---|
| 27 | |
|---|
| 28 | sub class_label_plural { |
|---|
| 29 | MT->translate('Audio'); |
|---|
| 30 | } |
|---|
| 31 | |
|---|
| 32 | # translate('audio') |
|---|
| 33 | |
|---|
| 34 | 1; |
|---|
| 35 | |
|---|
| 36 | __END__ |
|---|
| 37 | |
|---|
| 38 | =head1 NAME |
|---|
| 39 | |
|---|
| 40 | MT::Asset::Audio |
|---|
| 41 | |
|---|
| 42 | =head1 AUTHOR & COPYRIGHT |
|---|
| 43 | |
|---|
| 44 | Please see the L<MT/"AUTHOR & COPYRIGHT"> for author, copyright, and |
|---|
| 45 | license information. |
|---|
| 46 | |
|---|
| 47 | =cut |
|---|