The EncoderTwoLAME type exposes the following members.
Back to Top
Back to Top
Back to Top
Back to Top
Constructors
Name | Description | |
---|---|---|
EncoderTwoLAME |
Creates an instance of a TwoLAME encoder implementation.
|
Methods
Name | Description | |
---|---|---|
Dispose |
Implement IDisposable.
(Inherited from BaseEncoder.) | |
Finalize |
Finalization code.
(Inherited from BaseEncoder.) | |
Pause |
Pauses or resumes an encoder.
(Inherited from BaseEncoder.) | |
SettingsString |
Returns the string representation of the current encoder settings.
(Overrides BaseEncoder SettingsString .) | |
Start |
This method starts the actual TwoLAME encoder.
After the encoder was started successfully the EncoderHandle returns a valid HENCODE handle.
(Overrides BaseEncoder Start(ENCODEPROC, IntPtr, Boolean).) | |
Stop |
Stops the encoder (if started).
(Inherited from BaseEncoder.) | |
Stop(Boolean) |
Stops the encoder (if started).
(Inherited from BaseEncoder.) | |
ToString |
Returns the name of the Encoder.
(Overrides Object ToString .) |
Fields
Name | Description | |
---|---|---|
TWO_ATH |
-l: Set the ATH level. Default level is 0.0 (which will not use the property).
| |
TWO_Bitrate |
-b: Choose a total bitrate to encode at. Takes an argument in kbps (default is 256 kbps).
| |
TWO_Copyright |
-c: Turn on Copyright flag in output bitstream (default is ).
| |
TWO_CustomOptions |
The custom parameter string, which should be used, if the TWO_UseCustomOptionsOnly property is set to .
| |
TWO_DeEmphasis |
-e: Set the de-emphasis type (None, CCIT, 50/15ms). Default is None.
| |
TWO_Downmix |
-a: Downmix from stereo to mono? (default is ).
| |
TWO_Energy |
-E: Turn on energy level extensions (default is ).
| |
TWO_MaxBitrate |
-B: Specify a maximum bitrate in kbps when in VBR mode.
| |
TWO_Mode |
-m: The encoding mode (Stereo, Joint stereo, DualChannel, Mono, default is Auto).
| |
TWO_NonOriginal |
-o: Turn off Original flag in output bitstream (default is ).
| |
TWO_Padding |
-d: Turn on padding in output bitstream (default is ).
| |
TWO_Protect |
-p: Enable CRC error protection in output bitstream. An extra 16-bit checksum is added to each frame (default is ).
| |
TWO_PsycModel |
-P: The psychoacoustic model (PAM) TwoLAME should use (-1 to 4).
| |
TWO_Quick |
-q: Enable quick mode (if value is geater than 0 (zero)). Only re-calculate psycho-acoustic model every specified number of frames (default is 0).
| |
TWO_Reserve |
-R: Reserve specified number of bits in the each from of the output bitstream (default is 0, which will not use this property).
| |
TWO_Scale |
--scale: Scale input data (multiply PCM data). Set to 1.0 (default) for no scaling.
| |
TWO_UseCustomOptionsOnly |
Use the TWO_CustomOptions parameter string only (default= ).
| |
TWO_UseVBR |
-v: Enable the VBR (variable bitrate) mode (default is ).
| |
TWO_VBRLevel |
-V: Enable VBR and set a quality level from -50 to 50 (default is disbaled).
|
Properties
Name | Description | |
---|---|---|
ChannelBitwidth |
This property returns the actual bitwidth of the sample data of the channel (e.g. 8, 16, 32).
(Inherited from BaseEncoder.) | |
ChannelHandle |
Gets or Sets the channel handle which is used to create the broadcast encoder class.
(Inherited from BaseEncoder.) | |
ChannelInfo |
Returns the general channel info.
(Inherited from BaseEncoder.) | |
ChannelNumChans |
This property returns the actual number of channles of the sample data BASS is using with the channel (e.g. 1=mono, 2=stereo, etc.).
(Inherited from BaseEncoder.) | |
ChannelSampleRate |
This property returns the actual sample rate in Hz of the sample data BASS is using with the channel (e.g. 44100).
(Inherited from BaseEncoder.) | |
DefaultOutputExtension |
This return the default extension of an output file for this encoder (".mp2").
(Overrides BaseEncoder DefaultOutputExtension.) | |
EffectiveBitrate |
Returns the effective encoder bitrate (in kbps) of the output.
(Overrides BaseEncoder EffectiveBitrate.) | |
EncoderCommandLine |
Gets the actual encoder command-line string (using all TWO_xxx properties).
(Overrides BaseEncoder EncoderCommandLine.) | |
EncoderDirectory |
Gets or Sets the encoder's base directory.
(Inherited from BaseEncoder.) | |
EncoderExists | (Overrides BaseEncoder EncoderExists.) | |
EncoderHandle |
Gets or sets the current HENCODE encoder handle.
(Inherited from BaseEncoder.) | |
EncoderType |
Gets a value indicating the type of content. Here BASS_CTYPE_STREAM_MP2 is always returned.
(Overrides BaseEncoder EncoderType.) | |
Force16Bit |
Gets or Sets if a encoding in 16-bit sample data should be forced (default is ).
(Inherited from BaseEncoder.) | |
InputFile |
Gets or Sets the input file name to be processed by the encoder (null = STDIN, default).
(Inherited from BaseEncoder.) | |
IsActive |
Gets a value indicating if the encoder has been started (see Start(ENCODEPROC, IntPtr, Boolean)) and is active - else will be returned.
(Inherited from BaseEncoder.) | |
IsPaused |
Gets a value indicating if the encoder has been paused (see Pause(Boolean)) - else must be returned.
(Inherited from BaseEncoder.) | |
NoLimit |
Gets or Sets if encoding should use the CAST_NOLIMIT flag (which is only needed, if the encoder is used for streaming).
(Inherited from BaseEncoder.) | |
OutputFile |
Gets or Sets the output file name to be processed by the encoder (null = STDOUT, default).
(Inherited from BaseEncoder.) | |
SupportsSTDOUT |
TwoLAME implements STDOUT, so is always returned.
(Overrides BaseEncoder SupportsSTDOUT.) | |
TAGs |
Gets or Sets the TAG_INFO structure associated with the encoder.
(Inherited from BaseEncoder.) | |
UseAsyncQueue |
Gets or Sets if encoding should use an async queue (i.e. the BASS_ENCODE_QUEUE flag).
(Inherited from BaseEncoder.) |
See Also