struct CCL::IAudioContent

Overview

Shared properties of readable/writable audio content. More…

#include <iaudiosource.h>

struct IAudioContent: public CCL::IUnknown
{
    // methods

    virtual int CCL_API getNumChannels () const = 0;
    virtual SampleRate CCL_API getSampleRate () const = 0;
    virtual TSamples CCL_API getFrameCount () const = 0;
    virtual SpeakerBitField CCL_API getSpeakerFormat () const = 0;
    IAudioContent TSeconds getDuration () const;
};

Inherited Members

public:
    // methods

    virtual tresult CCL_API queryInterface (UIDRef iid, void** ptr) = 0;
    virtual unsigned int CCL_API retain () = 0;
    virtual unsigned int CCL_API release () = 0;

Detailed Documentation

Shared properties of readable/writable audio content.

Methods

virtual int CCL_API getNumChannels () const = 0

Get number of audio channels.

virtual SampleRate CCL_API getSampleRate () const = 0

Get sample rate.

virtual TSamples CCL_API getFrameCount () const = 0

Get length in audio frames.

For a source: total readable length, or -1 if unbounded. For a sink: number of frames written so far.

virtual SpeakerBitField CCL_API getSpeakerFormat () const = 0

Get speaker format of audio channels.

IAudioContent TSeconds getDuration () const

Get duration in seconds.