MCPcopy Create free account
hub / github.com/adamstark/AudioFile / saveToMemory

Method saveToMemory

AudioFile.h:888–900  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

886//=============================================================
887template <class T>
888bool AudioFile<T>::saveToMemory (std::vector<uint8_t>& fileData, AudioFileFormat format)
889{
890 if (format == AudioFileFormat::Wave)
891 {
892 return encodeWaveFile (fileData);
893 }
894 else if (format == AudioFileFormat::Aiff)
895 {
896 return encodeAiffFile (fileData);
897 }
898
899 return false;
900}
901
902//=============================================================
903template <class T>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected