BASS.NET API for the Un4seen BASS Audio LibraryBaseEncoder MembersBASS.NET API for the Un4seen BASS Audio Library

The BaseEncoder type exposes the following members.
Constructors

  NameDescription
Public methodBaseEncoder
Default constructor, which already evaluates the channel handle and evaluates the ChannelBitwidth.
Back to Top
Methods

  NameDescription
Public methodDispose
Implement IDisposable.
Public methodStatic memberEncodeFile(BaseEncoder, BaseEncoder ENCODEFILEPROC, Boolean, Boolean)
Encodes a given input file to a given output file using the specified encoder.
Public methodStatic memberEncodeFile(BaseEncoder, BaseEncoder ENCODEFILEPROC, Boolean, Boolean, Boolean)
Encodes a given input file to a given output file using the specified encoder.
Public methodStatic memberEncodeFile(String, String, BaseEncoder, BaseEncoder ENCODEFILEPROC, Boolean, Boolean)
Encodes a given input file to a given output file using the specified encoder.
Public methodStatic memberEncodeFile(String, String, BaseEncoder, BaseEncoder ENCODEFILEPROC, Boolean, Boolean, Boolean)
Encodes a given input file to a given output file using the specified encoder.
Public methodStatic memberEncodeFile(BaseEncoder, BaseEncoder ENCODEFILEPROC, Boolean, Boolean, Boolean, Double, Double)
Encodes a given input file to a given output file using the specified encoder.
Public methodStatic memberEncodeFile(BaseEncoder, BaseEncoder ENCODEFILEPROC, Boolean, Boolean, Boolean, Int64, Int64)
Encodes a given input file to a given output file using the specified encoder.
Public methodStatic memberEncodeFile(String, String, BaseEncoder, BaseEncoder ENCODEFILEPROC, Boolean, Boolean, Boolean, Double, Double)
Encodes a given input file to a given output file using the specified encoder.
Public methodStatic memberEncodeFile(String, String, BaseEncoder, BaseEncoder ENCODEFILEPROC, Boolean, Boolean, Boolean, Int64, Int64)
Encodes a given input file to a given output file using the specified encoder.
Protected methodFinalize
Finalization code.
(Overrides OnlineObject Finalize .)
Public methodPause
Pauses or resumes an encoder.
Public methodSettingsString
Returns the string representation of the current encoder settings.
Public methodStart
This method must implement the actual start of the encoder. After the encoder was started successfully the EncoderHandle must return a valid HENCODE handle.
Public methodStop 
Stops the encoder (if started).
Public methodStop(Boolean)
Stops the encoder (if started).
Back to Top
Properties

  NameDescription
Public propertyChannelBitwidth
This property returns the actual bitwidth of the sample data of the channel (e.g. 8, 16, 32).
Public propertyChannelHandle
Gets or Sets the channel handle which is used to create the broadcast encoder class.
Public propertyChannelInfo
Returns the general channel info.
Public propertyChannelNumChans
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.).
Public propertyChannelSampleRate
This property returns the actual sample rate in Hz of the sample data BASS is using with the channel (e.g. 44100).
Public propertyDefaultOutputExtension
This property should return the default extension of an output file for this encoder (e.g. ".mp3" or ".ogg" etc.).
Public propertyEffectiveBitrate
This property should return the target effective bitrate of the encoder output (in kbps, e.g. 128 kbps).
Public propertyEncoderCommandLine
This property should return an encoder command-line string, which might be used with the BASS_Encode_Start(Int32, String, BASSEncode, ENCODEPROC, IntPtr) method in order to create and start the encoder.
Public propertyEncoderDirectory
Gets or Sets the encoder's base directory.
Public propertyEncoderExists
This property should return  , if the encoder exists and is available - else   should be returned.
Public propertyEncoderHandle
Gets or sets the current HENCODE encoder handle.
Public propertyEncoderType
This property should return a value indicating which type of content the broadcast encoder implements.
Public propertyForce16Bit
Gets or Sets if a encoding in 16-bit sample data should be forced (default is  ).
Public propertyInputFile
Gets or Sets the input file name to be processed by the encoder (null = STDIN, default).
Public propertyIsActive
Gets a value indicating if the encoder has been started (see Start(ENCODEPROC, IntPtr, Boolean)) and is active - else   will be returned.
Public propertyIsPaused
Gets a value indicating if the encoder has been paused (see Pause(Boolean)) - else   must be returned.
Public propertyNoLimit
Gets or Sets if encoding should use the CAST_NOLIMIT flag (which is only needed, if the encoder is used for streaming).
Public propertyOutputFile
Gets or Sets the output file name to be processed by the encoder (null = STDOUT, default).
Public propertySupportsSTDOUT
This property should return  , if the base encoder implementation (resp. the underlying command-line tool being used) support STDOUT for output of the encoded data - else   must be returned.
Public propertyTAGs
Gets or Sets the TAG_INFO structure associated with the encoder.
Public propertyUseAsyncQueue
Gets or Sets if encoding should use an async queue (i.e. the BASS_ENCODE_QUEUE flag).
Back to Top
See Also