Class BassEnc_Opus
BassEnc_Opus is an extension to the BassEnc add-on that allows BASS channels to be Opus encoded, with support for OPUSENC options.
Namespace: System.Dynamic.ExpandoObject
Assembly: ManagedBass.Enc.dll
Syntax
public static class BassEnc_Opus : object
Properties
Version
Gets the Version of BassEnc_Opus that is loaded.
Declaration
public static Version Version { get; }
Property Value
Version
|
Methods
Start(Int32, String, EncodeFlags, EncodeProcedure, IntPtr)
Start Opus Encoding to EncodeProcedure.
Declaration
public static int Start(int Handle, string Options, EncodeFlags Flags, EncodeProcedure Procedure, IntPtr User)
Parameters
Int32
Handle
The channel handle... a HSTREAM, HMUSIC, or HRECORD. |
String
Options
Encoder options... null = use defaults. The following OPUSENC style options are supported: --bitrate, --vbr, --cvbr, --hard-cbr, --comp / --complexity, --framesize, --expect-loss, --max-delay, --serial, --comment, --artist, --title, --album, --date, --genre, --padding. Anything else that is included will be ignored. |
EncodeFlags
Flags
A combination of EncodeFlags. |
EncodeProcedure
Procedure
Optional callback function to receive the encoded data... null = no callback. |
IntPtr
User
User instance data to pass to the callback function. |
Returns
Int32
The encoder handle is returned if the encoder is successfully started, else 0 is returned. Use LastError to get the error code |
Remarks
EncodeStart(Int32, String, EncodeFlags, EncoderProcedure, IntPtr) is used internally to apply the encoder to the source channel, so the remarks in its documentation also apply to this function.
Platform-specific On Windows and Linux, an SSE supporting CPU is required for sample rates other than 48000/24000/16000/12000/8000 Hz.
Start(Int32, String, EncodeFlags, String)
Start Opus Encoding to File.
Declaration
public static int Start(int Handle, string Options, EncodeFlags Flags, string FileName)
Parameters
Int32
Handle
The channel handle... a HSTREAM, HMUSIC, or HRECORD. |
String
Options
Encoder options... null = use defaults. The following OPUSENC style options are supported: --bitrate, --vbr, --cvbr, --hard-cbr, --comp / --complexity, --framesize, --expect-loss, --max-delay, --serial, --comment, --artist, --title, --album, --date, --genre, --padding. Anything else that is included will be ignored. |
EncodeFlags
Flags
A combination of EncodeFlags. |
String
FileName
Output filename... null = no output file. |
Returns
Int32
The encoder handle is returned if the encoder is successfully started, else 0 is returned. Use LastError to get the error code |
Remarks
EncodeStart(Int32, String, EncodeFlags, EncoderProcedure, IntPtr) is used internally to apply the encoder to the source channel, so the remarks in its documentation also apply to this function.
Platform-specific On Windows and Linux, an SSE supporting CPU is required for sample rates other than 48000/24000/16000/12000/8000 Hz.