Copyright © 2005-2019 MultiMedia Soft

SoundComposer.ItemAppendNext method

Previous pageReturn to chapter overviewNext page

Remarks

 

Instructs the sound composer to append to an existing item the next item that will be added through one of the following methods: SoundComposer.ItemSoundFileAdd, SoundComposer.ItemSoundFileMemoryAdd, SoundComposer.ItemSoundFileRawAdd, SoundComposer.ItemSoundFileMemoryRawAd, SoundComposer.ItemSpeechFromFileAdd, SoundComposer.ItemSpeechFromStringAdd.

 

When this method is invoked successfully, the next item will be appended to the given existing item on the same audio channel of the sound composer and with the same "downmix to mono" setting. After the new item has been appended, the "append mode" is automatically reset.

 

For further details about sound composing see the the SoundComposerMan class and the How to compose a sound tutorial.

 

 

Syntax

 

[Visual Basic]

Public Function ItemAppendNext (

nPlayerIndex as Int16,

nUniqueIdAppendTo as Int32,

nOffsetFromAppendPosInMs as Int32

) as enumErrorCodes


 

[C#]

public enumErrorCodes ItemAppendNext (

Int16 nPlayerIndex,

Int32 nUniqueIdAppendTo,

Int32 nOffsetFromAppendPosInMs

);


 

[C++]

public: enumErrorCodes ItemAppendNext (

Int16 nPlayerIndex,

Int32 nUniqueIdAppendTo,

Int32 nOffsetFromAppendPosInMs

);


 

Parameter

Description

 

 

nPlayerIndex

Number representing the zero-based index of the player that owns the sound composer session

nUniqueIdAppendTo

Unique identifier of the previously added item

nOffsetFromAppendPosInMs

Offset, expressed in millisecond, to add between the existing item and the new one that is going to be appended.

Set this parameter to a positive value when you need to add silence between the existing item and the new one that is going to be appended.
Set this parameter to 0 if no silence is needed.
Set this parameter to a negative value if you need the new added item to overlap the end of the existing item of the given amount of time.

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred (see the LastError property for further error details)

enumErrorCodes.NOERROR (0)

The method call was successful.