Eric Oulashin's C++ Audio Mixer 1.0
SndFileHelpers.h File Reference
#include <cstdint>
#include <vector>
#include <sndfile.h>
#include "AudioFileInfo.h"
#include "AudioFileResultType.h"
Include dependency graph for SndFileHelpers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  EOUtils
namespace  EOUtils::sndfile_detail

Functions

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