Starts a new bitstream in an Opus encoder's output.
BOOL BASS_Encode_OPUS_NewStream( DWORD handle, char *options, DWORD flags );
handle | The encoder handle. | ||||||
options | The new bitstream's options. The same options as with BASS_Encode_OPUS_Start and BASS_Encode_OPUS_StartFile are available here. | ||||||
flags | A combination of these flags.
|
BASS_ERROR_HANDLE | handle is not valid. |
BASS_ERROR_NOTAVAIL | Only the BASS_ENCODE_OPUS_CTLONLY flag is available without an Ogg container ("--no-ogg" option). |
BASS_ERROR_ILLPARAM | options contains an invalid setting. |
BASS_ERROR_FILEOPEN | A "--picture" option file could not be opened. |
BASS_ERROR_FILEFORM | A "--picture" option file has an invalid format. It needs to be JPEG, PNG, or GIF. |
BASS_ERROR_MEM | There is insufficient memory. |
BASS_ERROR_UNKNOWN | Some other mystery problem! |
Tags/comments should be in UTF-8 form. This function will take care of that when the BASS_UNICODE flag is used, but otherwise you will need to make sure that any tags included in options are UTF-8 (not ISO-8859-1/etc).
When the "--no-ogg" option is in effect, there are no Ogg bitstreams, but this function can still be used to apply "--set-ctl-int" option changes with the BASS_ENCODE_OPUS_CTLONLY flag.