Superclasses :
AUIOElement
Subclasses :
none
Header : AUInputElement
class AUInputElement : public AUIOElement
An element class for input scope elements. Contains methods for making connections and pulling inputs.
Methods
Buffers
virtual bool NeedsBufferSpace() const;
Buffer space is only needed if this input uses a callback function to get its input.
Inputs connected to other AudioUnits will use the other unit's output buffer to get its input.
Connections
|
protected nonvirtual method
|
void Disconnect();
Breaks any connection to this element from either another AudioUnit or an input callback.
bool HasConnection() const;
Returns true if this element is connected to another AudioUnit.
bool IsActive() const;
Returns true if this element is connected either to another AudioUnit or an input callback.
bool IsCallback() const;
Returns true if this element pulls its input from a callback function.
void SetConnection(const AudioUnitConnection &conn);
Makes a connection from another AudioUnit to this element.
void SetInputCallback(
ProcPtr proc,
void* refCon
);
Set a function to call to get data for this element.
Constructor
AUInputElement(AUBase *audioUnit);
Destructor
|
public virtual destructor
|
virtual ~AUInputElement();
Format
virtual OSStatus SetStreamFormat(const CAStreamBasicDescription &desc);
Overridden to allocate buffer space.
Rendering
ComponentResult PullInput(
AudioUnitRenderActionFlags& ioActionFlags,
const AudioTimeStamp& inTimeStamp,
AudioUnitElement inElement,
UInt32 inNumberFrames
);
A convenience method for getting data for an input.
Data
Other
|
protected instance variable
|
void* mConnInstanceStorage;
|
protected instance variable
|
ProcPtr mConnRenderProc;
|
protected instance variable
|
AudioUnitConnection mConnection;
|
protected instance variable
|
bool mCritical;
A (broken) way of preventing a change of connection from happening during
a render call.
|
protected instance variable
|
ProcPtr mInputProc;
|
protected instance variable
|
void* mInputProcRefCon;
|
protected instance variable
|
EInputType mInputType;