struct CCL::AudioContentFormat

#include <iaudiosource.h>

struct AudioContentFormat
{
    // fields

    int channelCount = 0;
    SampleRate sampleRate = 0;
    SpeakerBitField speakerFormat = SpeakerDef::kEmpty;
    AudioSampleType sampleType = kAudioSampleTypeInt;
    int bitDepth = 0;
    AudioFormatType formatType = kAudioFormatPCM;

    // methods

    bool isValid () const;
    bool isFloat () const;
    AudioContentFormat& makeDefaultForBitDepth (int bitDepth);
    AudioContentFormat& makeFloat (AudioFloatType floatType = kAudioFloat32);
};