logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Author

       Florian Ragwitz <flora@cpan.org>

Description

       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.

Name

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

See Also

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

See Also