Instance Method

shouldChangeToFormat:forBus:

This is called when you set the format on a bus.

Declaration

- (BOOL)shouldChangeToFormat:(AVAudioFormat *)format forBus:(AUAudioUnitBus *)bus;

Parameters

format

The proposed new format.

bus

The bus on which the format will be changed.

Return Value

  • YES if the new format will be set on the bus.

  • NO if the new format will not be set on the bus.

Discussion

The bus has already checked that the format meets its channel constraints. The audio unit can override this method to check the format before allowing it to be set on the bus.

The default implementation returns NO if the audio unit’s renderResourcesAllocated value is YES.

See Also

Audio Unit Implementations

internalRenderBlock

The block which you must provide, via a getter, in order to implement rendering.

+ registerSubclass:asComponentDescription:name:version:

Registers an audio unit component implemented as an AUAudioUnit subclass.

- setRenderResourcesAllocated:

Sets the Boolean value of the renderResourcesAllocated property.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software