struct CCL::IWrappedAudioSource

Overview

Common base for an IAudioSource that wraps another IAudioSource. More…

#include <iaudiosource.h>

struct IWrappedAudioSource: public CCL::IAudioSource
{
    // methods

    virtual tresult CCL_API setSource (IAudioSource* source) = 0;
    virtual IAudioSource*CCL_API getSource () const = 0;
};

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;
    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;
    virtual int CCL_API read (AudioData& data, int sampleFrames) = 0;
    virtual TSamples CCL_API seek (TSamples position) = 0;
    virtual TSamples CCL_API tell () const = 0;

Detailed Documentation

Common base for an IAudioSource that wraps another IAudioSource.

Methods

virtual tresult CCL_API setSource (IAudioSource* source) = 0

Assign the underlying source to wrap.

Retains it.

virtual IAudioSource*CCL_API getSource () const = 0

Get the underlying source.

Does not transfer ownership.