BASS.NET API for the Un4seen BASS Audio Library

BassEncBASS_Encode_GetCARef Method

BASS.NET API for the Un4seen BASS Audio Library
Retrieves a CoreAudio codec encoder's ExtAudioFileRef object.

Namespace:  Un4seen.Bass.AddOn.Enc
Assembly:  Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax

[DllImportAttribute("bassenc", CharSet = CharSet.Auto)]
public static IntPtr BASS_Encode_GetCARef(
	int handle
)

Parameters

handle
Type: SystemInt32
The encoder.

Return Value

Type: IntPtr
If successful, then the encoder's ExtAudioFileRef object is returned, otherwise is returned. Use BASS_ErrorGetCode to get the error code.
Remarks

This function allows those that are familiar with the Extended Audio File Services interface to configure a CoreAudio codec. Configuration changes need to be made before any data is encoded, so the encoder should be created in a paused state (BASS_ENCODE_PAUSE) to ensure that.

ERROR CODEDescription
BASS_ERROR_HANDLEhandle is not valid.
BASS_ERROR_NOTAVAILThe encoder is not using a CoreAudio codec.

See Also

Reference