|
| | MetadataAudioFile (const std::string &pFilename) |
| | MetadataAudioFile (const std::string &pFilename, AudioFileModes pFileMode) |
| | MetadataAudioFile (const MetadataAudioFile &pOther) |
| virtual | ~MetadataAudioFile () |
| virtual AudioFileResultType | setTitle (const std::string &pTitle)=0 |
| | Sets the title metadata tag.
|
| virtual AudioFileResultType | setArtist (const std::string &pArtist)=0 |
| | Sets the artist metadata tag.
|
| virtual AudioFileResultType | setAlbum (const std::string &pAlbum)=0 |
| | Sets the album metadata tag.
|
| virtual AudioFileResultType | setGenre (const std::string &pGenre)=0 |
| | Sets the genre metadata tag.
|
| virtual AudioFileResultType | setTrackNumber (uint32_t pTrackNumber, uint32_t pTotalTracks=0)=0 |
| | Sets the track number metadata tag.
|
| virtual AudioFileResultType | setYear (const std::string &pYear)=0 |
| | Sets the year/date metadata tag.
|
| virtual AudioFileResultType | setComment (const std::string &pComment)=0 |
| | Sets the comment metadata tag.
|
| virtual AudioFileResultType | getTitle (std::string &pTitle) const =0 |
| | Gets the title metadata tag.
|
| virtual AudioFileResultType | getArtist (std::string &pArtist) const =0 |
| | Gets the artist metadata tag.
|
| virtual AudioFileResultType | getAlbum (std::string &pAlbum) const =0 |
| | Gets the album metadata tag.
|
| virtual AudioFileResultType | getGenre (std::string &pGenre) const =0 |
| | Gets the genre metadata tag.
|
| virtual AudioFileResultType | getTrackNumber (uint32_t &pTrackNumber, uint32_t &pTotalTracks) const =0 |
| | Gets the track number metadata tag.
|
| virtual AudioFileResultType | getYear (std::string &pYear) const =0 |
| | Gets the year/date metadata tag.
|
| virtual AudioFileResultType | getComment (std::string &pComment) const =0 |
| | Gets the comment metadata tag.
|
| | AudioFile (const std::string &pFilename) |
| | Constructor.
|
| | AudioFile (const std::string &pFilename, AudioFileModes pFileMode) |
| | AudioFile (const AudioFile &pAudioFile) |
| virtual | ~AudioFile () |
| virtual void | setAudioFileInfo (const AudioFileInfo &pAudioFileInfo)=0 |
| virtual AudioFileResultType | open (AudioFileModes pOpenMode) |
| virtual bool | BitrateIsAdjustable () const =0 |
| | Returns whether or not the audio file bitrate is adjustable.
|
| virtual bool | isOpen () const |
| | Returns whether or not the audio file is open.
|
| virtual bool | hasReadMode () const |
| | Returns whether or not read mode is enabled for the file.
|
| virtual bool | hasWriteMode () const |
| | Returns whether or not write mode is enabled for the file.
|
| virtual void | close () |
| | Closes the audio file.
|
| virtual AudioFileResultType | getNextSample_int64 (int64_t &pAudioSample)=0 |
| | Gets the next sample from the file, cast to a 64-bit integer.
|
| virtual AudioFileResultType | writeSample_int64 (int64_t pAudioSample)=0 |
| | Writes an audio sample to the file. The parameter is a 64-bit integer but will be cast to the bitness of the audio samples in the file.
|
| virtual AudioFileResultType | getHighestSampleValue_int64 (int64_t &pHighestAudioSample)=0 |
| | Gets the highest audio sample value from the file, cast to a 64-bit integer.
|
| virtual AudioFileResultType | goToAudioDataPos ()=0 |
| | Goes to the audio data position in the audio file.
|
| virtual size_t | numSamples () const =0 |
| | Returns the number of audio samples in the audio file.
|
| virtual int64_t | maxValueForSampleSize () const =0 |
| | Returns the maximum possible positive value of the audio file's sample size.
|
| const std::string & | Filename () const |
| | Gets the filename of the audio file.
|
| void | Filename (const std::string &pFilename) |
| | Setter for the filename of the audio file.
|
| void | setMetadata (const std::string &pName, const std::string &pValue) |
| | Adds a piece of metadata for the audio file.
|
| template<typename T> |
| void | setMetadataFromVal (const std::string &pName, const T &pValue) |
| | Adds a piece of metadata for the audio file. Templatized for any value type. The value will be converted to a string to store in the metadata.
|
| AudioFileResultType | getMetadata (const std::string &pName, std::string &pValue) const |
| | Gets a metadata value as a string.
|
| template<typename T> |
| AudioFileResultType | getMetadataAs (const std::string &pName, T &pValue) const |
| | Gets a metadata value. Templatized to capture the value as any type.
|
| std::string | getMetadata (const std::string &pName) const |
| | Gets a metadata value.
|
| template<typename T> |
| T | getMetadataAs (const std::string &pName) const |
| template<typename T> |
| T | getMetadataAs (const std::string &pName, const T &pDefaultVal) const |
| | Gets a metadata value. Templatized to return it as any type.
|
| bool | hasMetadata (const std::string &pName) const |
| | Returns whether or not a metadata item exists.
|
| virtual AudioFileInfo | getAudioFileInfo () const =0 |
| | Returns an AudioFile object with information about the audio file.
|
| virtual void | seekOutputToSampleNum (size_t pSampleNum)=0 |
Abstract class that extends AudioFile with pure virtual methods for adding/updating common audio metadata (tags). Derived classes for audio formats that support metadata (e.g., FLAC, Ogg Vorbis) should inherit from this class and implement the metadata operations.