|
Eric Oulashin's C++ Audio Mixer 1.0
|
Classes | |
| class | AudioFile |
| class | AudioFileInfo |
| class | AudioFileResultType |
| class | FLACFile |
| class | FLACFileInfo |
| Holds metadata for FLAC audio files. More... | |
| class | WAVFile |
| class | WAVFileInfo |
Enumerations | |
| enum | AudioFileModes { AUDIO_FILE_READ , AUDIO_FILE_WRITE , AUDIO_FILE_READ_WRITE } |
Functions | |
| string | CStringToStdString (const CString &pCStr) |
| CString | stdStringToCString (const string &pStr) |
| CString | stdStringToCString (const std::string &pStr) |
| std::shared_ptr< AudioFile > | createAudioFileObjForExistingFile (const char *pFilename) |
| Creates a shared pointer to an audioFile object for an existing audio file - Creates the appropriate subclass object, depending on the file format. | |
| std::shared_ptr< AudioFile > | createAudioFileObjForNewFile (const char *pFilename) |
| Creates a shared pointer to an audioFile object for a new (non-existing) audio file - Creates the appropriate subclass object, depending on the filename extension. If the format isn't recognized, returns a null pointer. | |
| std::string | getFileExtensionUpper (const char *pFilename) |
| Returns a filename's extension in uppercase, or an empty string if there is no extension. The extension is the part of the filename after the last dot. | |
| AudioFileResultType | getAudioFileInfo (const char *pFilename, AudioFileInfo &pAudioFileInfo) |
| Gets information about an audio file. | |
| AudioFileResultType | mixAudioFiles (const std::vector< std::string > &pFilenames, const std::string &pOutputFilename) |
| Mixes (merges) multiple audio files into a single file. | |
| AudioFileResultType | mixAudioFiles (const std::vector< std::string > &pFilenames, std::shared_ptr< AudioFile > &pOutputAudioFile) |
| Mixes (merges) multiple audio files into a single file. | |
| AudioFileResultType | mixAudioFiles (const std::vector< std::string > &pFilenames, EOUtils::AudioFile &pOutputAudioFile) |
| AudioFileResultType | getHighestSampleValue_64bit (const std::vector< std::string > &pFilenames, int64_t &pHighestAudioSample) |
| Gets the highest audio sample from a set of audio files, cast to a 64-bit integer. | |
| bool | isBigEndian () |
| void | reverseBytes (void *pStart, int pSize) |
| size_t | getFileSize (const char *pFilename) |
| template<typename T > | |
| T | maxValue () |
| template<typename T > | |
| T | minValue () |
Variables | |
| static bool | machineIsBigEndian = isBigEndian() |
| shared_ptr< AudioFile > EOUtils::createAudioFileObjForExistingFile | ( | const char * | pFilename | ) |
Creates a shared pointer to an audioFile object for an existing audio file - Creates the appropriate subclass object, depending on the file format.
| [in] | pFilename | The name of the audio file |
Referenced by getHighestSampleValue_64bit(), and mixAudioFiles().
| shared_ptr< AudioFile > EOUtils::createAudioFileObjForNewFile | ( | const char * | pFilename | ) |
Creates a shared pointer to an audioFile object for a new (non-existing) audio file - Creates the appropriate subclass object, depending on the filename extension. If the format isn't recognized, returns a null pointer.
| [in] | pFilename | The name of the audio file |
References getFileExtensionUpper().
| std::string EOUtils::CStringToStdString | ( | const CString & | pCStr | ) |
References CStringToStdString().
Referenced by CStringToStdString().
| AudioFileResultType EOUtils::getAudioFileInfo | ( | const char * | pFilename, |
| AudioFileInfo & | pAudioFileInfo | ||
| ) |
Gets information about an audio file.
| [in] | pFilename | The name of the audio file |
| [out] | pAudioFileInfo | An AudioFileInfo object that will be populated with information about the audio file |
References EOUtils::AudioFileResultType::addError(), EOUtils::AudioFileInfo::copyAudioFileInfo(), EOUtils::AudioFileResultType::numErrors(), and result.
Referenced by mixAudioFiles().
| string EOUtils::getFileExtensionUpper | ( | const char * | pFilename | ) |
Returns a filename's extension in uppercase, or an empty string if there is no extension. The extension is the part of the filename after the last dot.
| [in] | pFilename | The name of the audio file |
Referenced by createAudioFileObjForNewFile().
| size_t EOUtils::getFileSize | ( | const char * | pFilename | ) |
| AudioFileResultType EOUtils::getHighestSampleValue_64bit | ( | const std::vector< std::string > & | pFilenames, |
| int64_t & | pHighestAudioSample | ||
| ) |
Gets the highest audio sample from a set of audio files, cast to a 64-bit integer.
| [in] | pFilenames | A collection of audio file names |
| [out] | pHighestAudioSample | This will contain the highest audio sample found in the audio files |
References EOUtils::AudioFileResultType::addError(), AUDIO_FILE_READ, createAudioFileObjForExistingFile(), and result.
Referenced by mixAudioFiles().
| bool EOUtils::isBigEndian | ( | ) |
| T EOUtils::maxValue | ( | ) |
| T EOUtils::minValue | ( | ) |
| AudioFileResultType EOUtils::mixAudioFiles | ( | const std::vector< std::string > & | pFilenames, |
| const std::string & | pOutputFilename | ||
| ) |
Mixes (merges) multiple audio files into a single file.
| [in] | pFilenames | A collection of filenames of audio files to mix |
| [out] | pOutputFilename | The filename for the resulting mixed audio file |
References mixAudioFiles().
Referenced by mixAudioFiles(), and mixAudioFiles().
| AudioFileResultType EOUtils::mixAudioFiles | ( | const std::vector< std::string > & | pFilenames, |
| EOUtils::AudioFile & | pOutputAudioFile | ||
| ) |
References EOUtils::AudioFileResultType::addError(), AUDIO_FILE_READ, AUDIO_FILE_WRITE, EOUtils::AudioFileInfo::BitsPerSample(), EOUtils::AudioFile::close(), createAudioFileObjForExistingFile(), EOUtils::AudioFile::Filename(), getAudioFileInfo(), EOUtils::AudioFileResultType::getErrors(), getHighestSampleValue_64bit(), EOUtils::AudioFile::isOpen(), EOUtils::AudioFileInfo::NumChannels(), EOUtils::AudioFile::open(), result, EOUtils::AudioFileInfo::SampleRateHz(), EOUtils::AudioFile::setAudioFileInfo(), and EOUtils::AudioFile::writeSample_int64().
| AudioFileResultType EOUtils::mixAudioFiles | ( | const std::vector< std::string > & | pFilenames, |
| std::shared_ptr< AudioFile > & | pOutputAudioFile | ||
| ) |
Mixes (merges) multiple audio files into a single file.
| [in] | pFilenames | A collection of filenames of audio files to mix |
| [in,out] | pOutputAudioFile | An AudioFile object for the resulting mixed audio file. This should be an instance of the desired subclass for the output file format, and does not need to be open (in fact, it's better if it's not open yet) |
References mixAudioFiles().
| void EOUtils::reverseBytes | ( | void * | pStart, |
| int | pSize | ||
| ) |
| CString EOUtils::stdStringToCString | ( | const std::string & | pStr | ) |
| CString EOUtils::stdStringToCString | ( | const string & | pStr | ) |
|
static |