TargetFileMediaFoundation /

TargetFile implementation using Microsoft's Media Foundation Framework.

Currently can encode WAV in 16-bit signed or 32-bit floating point samples (file extension is ignored).


Public Member Functions

  • TargetFileMediaFoundation (const DataTargetRef &dataTarget, size_t sampleRate, size_t numChannels, SampleType sampleType, const std::string &extension)
  • ~TargetFileMediaFoundation ()
  • performWrite (const Buffer *buffer, size_t numFrames, size_t frameOffset) override
  • write (const Buffer *buffer)
  • write (const Buffer *buffer, size_t numFrames)
  • write (const Buffer *buffer, size_t numFrames, size_t frameOffset)
  • size_t
    getSampleRate () const
  • size_t
    getNumChannels () const

Static Public Member Functions

  • std::unique_ptr< TargetFile >
    create (const DataTargetRef &dataTarget, size_t sampleRate, size_t numChannels, SampleType sampleType=SampleType::INT_16, std::string extension="")
  • std::unique_ptr< TargetFile >
    create (const fs::path &path, size_t sampleRate, size_t numChannels, SampleType sampleType=SampleType::INT_16, std::string extension="")

Protected Attributes

  • size_t
    mSampleRate
  • size_t
    mNumChannels
  • mSampleType