Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

audio::file::audioproperties(3pm) [debian man page]

Audio::File::AudioProperties(3pm)			User Contributed Perl Documentation			 Audio::File::AudioProperties(3pm)

NAME
Audio::File::AudioProperties - abstract an audio files audio properties. DESCRIPTION
Audio::File::AudioProperties is the base class for other file format independant audio property classes like Audio::File::Flac::AudioProperties or Audio::File::Ogg::AudioProperties. You should not use this class yourself exept you're writing an own file format dependant subclass. METHODS
new Constructor. Creates new Audio::File::AudioProperties object. You shoud not use this method yourself. It's called by the filetype-dependant subclasses of Audio::File::Type automatically. init Initializes the object. It's called by the constructor and empty by default. It's ought to be overwritten by subclasses. length Returns the length of the audio file in seconds. bitrate Returns the bitrate of the file. sample_rate Returns the sample rate of the audio file. channels Returns the number of channels the audio file has. all Get all audio properties. SEE ALSO
Audio::File, Audio::File::Type, Audio::File::Tag AUTHOR
Florian Ragwitz <flora@cpan.org> COPYRIGHT AND LICENSE
Copyright (C) 2004 Florian Ragwitz This program is free software; you can redistribute it and/or modify it under the terms of the GNU 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 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. perl v5.10.0 2005-02-18 Audio::File::AudioProperties(3pm)

Check Out this Related Man Page

Audio::File::Type(3pm)					User Contributed Perl Documentation				    Audio::File::Type(3pm)

NAME
Audio::File::Type - represents an audio filetype DESCRIPTION
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. METHODS
new 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. init This method will be called by the constructor. It's empty by default and should be overwritten by inheriting subclasses to initialize themselfes. name Returns the name of the audio file. is_readable 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. is_writeable 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. tag Returns a reference to the files tag object. See the documentation of Audio::File::Tag to learn about what the tag object does. audio_properties 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. save Saves the audio file. This is not yet implemented but it should remember me to do it at some time.. :-) type Returns the files type. TODO
implement changing the file SEE ALSO
Audio::File, Audio::File::Tag, Audio::File::AudioProperties AUTHOR
Florian Ragwitz <flora@cpan.org> COPYRIGHT AND LICENSE
Copyright (C) 2004 Florian Ragwitz This program is free software; you can redistribute it and/or modify it under the terms of the GNU 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 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. perl v5.10.0 2005-02-18 Audio::File::Type(3pm)
Man Page