BB FlashBack SDK: FBSounds

ExtractSound

Description

Saves a sound track to a file new length. See How The Sound Classes Work for more information on sound tracks.

Syntax

[C#/C++]
public long ExtractSound (long index, BSTR filename, long format);

[VB.NET]
Public Function ExtractSound (ByVal index As Integer, ByVal filename As String, ByVal format As Integer) As Integer

Parameters

index (in) - index of the sound to save.

filename (in) - name of the file to save the sound to.

format (in) - determines the format of the sound file saved. Can take one of three values :

0

Unchanged - keeps the current format of the sound.

1

WAV (uncompressed)

2

MP3

 

Return Values

Returns zero if unsuccessful, non-zero if successful.

See Also

How the sound classes work