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

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

public byte[] ConvertToRiffCART(
	bool fromNativeTags
)

Parameters

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

Return Value

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

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

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

CART fieldContent
Version--
Titletitle
Artistartist
CutIDalbum
ClientIDcopyright
Categorygenre
Classificationgrouping
OutCue--
StartDate--
StartTime--
EndDate--
EndTime--
ProducerAppIDencodedby
ProducerAppVersion--
UserDef--
LevelReference--
Timer1-8--
URL--
TagTextcomment
Note: Broadcast Wave Format (cart) native tags are named as above with the prefix 'CART'.

Examples

VB
Dim cartData As Byte() = TAGs.ConvertToRiffCART(True)
If cartData IsNot Nothing Then 
    BassEnc.BASS_Encode_AddChunk(_encoderHandle, "cart", cartData, cartData.Length) 
End If
byte[] cartData = TAGs.ConvertToRiffCART(true);
if (cartData != null)
    BassEnc.BASS_Encode_AddChunk(_encoderHandle, "cart", cartData, cartData.Length);
See Also

Reference