Eric Oulashin's C++ Audio Mixer 1.0
AudioMixerCPPDlg.cpp File Reference
#include "stdafx.h"
#include "AudioMixerCPP.h"
#include "AudioMixerCPPDlg.h"
#include "afxdialogex.h"
#include "GUITools.h"
#include "AudioFileTools.h"
#include "WAVFile.h"
#include "StringUtils.h"
#include <thread>
#include <stdexcept>
#include <memory>
Include dependency graph for AudioMixerCPPDlg.cpp:

Classes

class  CAboutDlg
class  AudioFile
class  AudioFileResultType

Macros

#define WM_MIX_DONE_MESSAGE   (WM_USER + 100)

Functions

string CStringToStdString (const CString &pCStr)
AudioFileResultType mixAudioFiles (const std::vector< std::string > &pFilenames, const std::string &pOutputFilename)
 Mixes (merges) multiple audio files into a single file.
std::shared_ptr< AudioFilecreateAudioFileObjForNewFile (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.

Macro Definition Documentation

◆ WM_MIX_DONE_MESSAGE

#define WM_MIX_DONE_MESSAGE   (WM_USER + 100)

Function Documentation

◆ createAudioFileObjForNewFile()

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.

Parameters
[in]pFilenameThe name of the audio file
Returns
A shared pointer to an AudioFile object, which will be an instance of the appropriate subclass for the file, or a null pointer if it is not a recognized format.

Referenced by CAudioMixerCPPDlg::OnBnClickedButtonMixAudioFiles().

◆ CStringToStdString()

std::string EOUtils::CStringToStdString ( const CString & pCStr)

◆ mixAudioFiles()

AudioFileResultType EOUtils::mixAudioFiles ( const std::vector< std::string > & pFilenames,
const std::string & pOutputFilename )

Mixes (merges) multiple audio files into a single file.

Parameters
[in]pFilenamesA collection of filenames of audio files to mix
[out]pOutputFilenameThe filename for the resulting mixed audio file
Returns
True on success, or false with error messages on failure

Referenced by EOUtils::mixAudioFiles(), and CAudioMixerCPPDlg::OnBnClickedButtonMixAudioFiles().