Eric Oulashin's C++ Audio Mixer 1.0
EOUtils::sndfile_detail Namespace Reference

Functions

void sfInfoToAudioFileInfo (const SF_INFO &pSf, std::uintmax_t pFileSizeBytes, AudioFileInfo &pOut)
 Fills AudioFileInfo from libsndfile SF_INFO and optional file size.
int16_t effectiveBitsPerSample (int pSfFormatFull)
 Nominal bits per sample for decoded/interleaved int I/O via libsndfile.
int64_t maxSampleValueForFormat (int16_t pBitsPerSample)
 Maximum PCM magnitude for clamping ints passed to sf_writef_*.
std::string formatErrorSuffix (SNDFILE *pSndOrNull)
bool formatHasMajorMinor (int pFullFormat, int pMajorMask, int pMinorMask)
std::uintmax_t safeFileSize (const std::string &pPath)
std::vector< char > peekFilePrefix (const std::string &pPath, std::size_t pMaxLen)

Function Documentation

◆ effectiveBitsPerSample()

int16_t EOUtils::sndfile_detail::effectiveBitsPerSample ( int pSfFormatFull)

Nominal bits per sample for decoded/interleaved int I/O via libsndfile.

Referenced by sfInfoToAudioFileInfo().

◆ formatErrorSuffix()

std::string EOUtils::sndfile_detail::formatErrorSuffix ( SNDFILE * pSndOrNull)

◆ formatHasMajorMinor()

bool EOUtils::sndfile_detail::formatHasMajorMinor ( int pFullFormat,
int pMajorMask,
int pMinorMask )

◆ maxSampleValueForFormat()

int64_t EOUtils::sndfile_detail::maxSampleValueForFormat ( int16_t pBitsPerSample)

◆ peekFilePrefix()

std::vector< char > EOUtils::sndfile_detail::peekFilePrefix ( const std::string & pPath,
std::size_t pMaxLen )

◆ safeFileSize()

std::uintmax_t EOUtils::sndfile_detail::safeFileSize ( const std::string & pPath)

◆ sfInfoToAudioFileInfo()