Audio::File::AudioProperties(3pm)

Audio::File::AudioProperties3pm

Abstract an audio files audio properties.

Overview

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.

Methods

new

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.

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.

Releases

11 releases since Debian 3.1 (Sarge); the text changed 5 times.

  1. 3.1
  2. 4.0–5.0
  3. 6.0–9
  4. 10
  5. 11
  6. 12–13

Author

Florian Ragwitz <[email protected]>

From libaudio-file-perl 0.11-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.