BASS.NET API for the Un4seen BASS Audio LibraryEncoderAIFFStart Method BASS.NET API for the Un4seen BASS Audio Library
This method starts the actual AIFF encoder.

Namespace: Un4seen.Bass.Misc
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.12.0
Syntax

public override bool Start(
	ENCODEPROC proc,
	IntPtr user,
	bool paused
)

Parameters

proc
Type: Un4seen.Bass.AddOn.EncENCODEPROC
Must be = no callback, since EncoderAIFF does not support STDOUT.
user
Type: SystemIntPtr
Must be Zero, since EncoderAIFF does not support STDOUT.
paused
Type: SystemBoolean
Start the encoder paused? If , you might use Pause(Boolean) to unpause (and really start the encoder).

Return Value

Type: Boolean
Returns , if the encoder was successfully started - else is returned.

Implements

IBaseEncoderStart(ENCODEPROC, IntPtr, Boolean)
Remarks

This method uses the BASS_ENCODE_AIFF flag to write plain PCM sample data to a file (if an OutputFile has been specified), without an encoder. If no OutputFile has been specified () - nothing will actually happen.

If you have specified a file name for InputFile (instead of ), a default stream using BASS_StreamCreateFile(String, Int64, Int64, BASSFlag) will be created internally and all it's data will immediately be encoded (meaning the paused flag will have no effect), else the data from the ChannelHandle will be encoded.

After the encoder was started successfully the EncoderHandle returns a valid HENCODE handle. If the encoder was not started successfully or was stopped EncoderHandle returns 0 (zero).

If an encoder stops running prematurely, Stop should still be called to release resources that were allocated for the encoding.

See Also

Reference