struct CCL::IAudioSink

Overview

Abstract destination for floating-point audio, can be implemented by encoders and others. More…

#include <iaudiosource.h>

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

    virtual int CCL_API write (const AudioData& data, int sampleFrames) = 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;

Detailed Documentation

Abstract destination for floating-point audio, can be implemented by encoders and others.

Methods

virtual int CCL_API write (const AudioData& data, int sampleFrames) = 0

Write a block of audio.

Returns the number of samples actually written, or a negative value on error.