BASS.NET API for the Un4seen BASS Audio Library

TAG_INFOConvertToRiffBEXT Method

BASS.NET API for the Un4seen BASS Audio Library
Converts the members of this instance to a WAV RIFF BEXT chunk.

Namespace:  Un4seen.Bass.AddOn.Tags
Assembly:  Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax

public byte[] ConvertToRiffBEXT(
	bool fromNativeTags
)

Parameters

fromNativeTags
Type: SystemBoolean
to create the BEXT chunk out of the NativeTags, to create them from the standard members.

Return Value

Type: Byte
The byte array containing the BEXT chunk data.
Remarks

You might use this method to write a RIFF BEXT chunk to a wave file using the BASS_Encode_AddChunk(Int32, String, IntPtr, Int32) method.

When creating the BEXT chunk from the the standard members, the following mapping is used:

BEXT fieldContent
Descriptiontitle
Originatorartist
OriginatorReferenceencodedby
OriginationDateyear
OriginationTimeyear
TimeReference--
UMID--
Version1
CodingHistory--
Note: Broadcast Wave Format (bext) native tags are named as above with the prefix 'BWF'.

Examples

byte[] bextData = TAGs.ConvertToRiffBEXT(true);
if (bextData != null)
    BassEnc.BASS_Encode_AddChunk(_encoderHandle, "bext", bextData, bextData.Length);
See Also

Reference