Represents an audio filetype
An instance of an object inherited from Audio::File::Type is returned by the constructor of Audio::File. This object currently provides access to the audio files information like its audio properties (bitrate, sample rate, number of channels, ...) and the data stored in the files tag, but also providing access to the raw audio data and other information should be easy to be implemented.
Constructor. In fact you don't need to use it. Please use Audio::File which will call the appropriate constructor corresponding to the files type.
This method will be called by the constructor. It's empty by default and should be overwritten by inheriting subclasses to initialize themselfes.
Returns the name of the audio file.
Checks whether the file is readable or not. At the moment it's only used by the constructor, but it will be more usefull with later versions of Audio::File.
Checks whether the file is writeable or not. At the moment you'll probably don't need to call this method, but it'll be more usefull as soon as changing the audio file is implemented.
Returns a reference to the files tag object. See the documentation of Audio::File::Tag to learn about what the tag object does.
Returns a reference to the files audio properties object. See the documentation of Audio::File::AudioProperties to get information about what the audio properties object does.
Saves the audio file. This is not yet implemented but it should remember me to do it at some time.. :-)
Returns the files type.
Audio::File, Audio::File::Tag, Audio::File::AudioProperties
Florian Ragwitz <[email protected]>
Copyright (C) 2004 Florian Ragwitz
This program is free software; you can redistribute it and/or modify it under the terms of the \s-1GNU\s0 General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but \s-1WITHOUT\s0 \s-1ANY\s0 \s-1WARRANTY\s0; without even the implied warranty of \s-1MERCHANTABILITY\s0 or \s-1FITNESS\s0 \s-1FOR\s0 A \s-1PARTICULAR\s0 \s-1PURPOSE\s0. See the \s-1GNU\s0 Library General Public License for more details.
You should have received a copy of the \s-1GNU\s0 General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, \s-1MA\s0 02111-1307, \s-1USA\s0.