BB FlashBack SDK: FBRecorder

AddSoundBlockByPointer

Description

Adds sound into the track defined earlier by a call to InitCustomSoundTrack.

This method should only be called while recording is in-progress, and can be called any number of times. The added sound will start at the current point in the recording.

Syntax

[C#/C++]
Public Bool AddSoundBlockByPointer (BYTE* sound_data, long samples);

[VB.NET]
public Function AddSoundBlockByPointer (ByRef sound_data() as Char, ByVal samples as Integer) as Boolean

Parameters

sound_data (in): pointer to the sample data that makes up the new track

samples (in): number of samples in the buffer pointed to by sound_data

Remarks

The samplesize and stereo parameters passed to InitCustomSoundTrack affect the number of bytes in each sample.

See InitCustomSoundTrack for example code.

Return Values

True if successful, False if not.

See Also

FBRecorder::UseCustomSoundTrack  FBRecorder::InitCustomSoundTrack