DOKK / manpages / debian 12 / libaudio-file-perl / Audio::File::AudioProperties.3pm.en
Audio::File::AudioProperties(3pm) User Contributed Perl Documentation Audio::File::AudioProperties(3pm)

Audio::File::AudioProperties - abstract an audio files audio properties.

Audio::File::AudioProperties is the base class for other file format independent audio property classes like Audio::File::Flac::AudioProperties or Audio::File::Ogg::AudioProperties. You should not use this class yourself except if you're writing your own file format dependent subclass.

Constructor. Creates new Audio::File::AudioProperties object. You should not use this method yourself. It's called by the filetype-dependant subclasses of Audio::File::Type automatically.

Initializes the object. It's called by the constructor and empty by default. It's ought to be overwritten by subclasses.

Returns the length of the audio file in seconds.

Returns the bitrate of the file.

Returns the sample rate of the audio file.

Returns the number of channels the audio file has.

Get all audio properties.

Audio::File, Audio::File::Type, Audio::File::Tag

Florian Ragwitz <flora@cpan.org>

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.

2022-11-20 perl v5.36.0