Copyright © 2008-2018 MultiMedia Soft

SoundComposer.ItemSoundFileDownmixToMonoSet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Specifies if downmix will occur in order to store a stereo sound file into a mono channel of the stream. The current setting can be obtained through the SoundComposer.ItemSoundFileDownmixToMonoGet method.

 

For further details about sound composing see the the SoundComposer object and the How to compose a sound tutorial.

 

 

Syntax

 

[Visual Basic]

control.SoundComposer.ItemSoundFileDownmixToMonoSet (

nUniqueId as Long,

bDownMixToMono as enumBoolean

) as enumErrorCodes


 

[C++]

short control.SoundComposer.ItemSoundFileDownmixToMonoSet (

long nUniqueId,

short bDownMixToMono

);


 

Parameter

Description

 

 

nUniqueId

The unique identifier of the sound file item previously returned by the call to one of the following methods: SoundComposer.ItemSoundFileAdd, SoundComposer.ItemSoundFileMemoryAdd, SoundComposer.ItemSoundFileRawAdd, SoundComposer.ItemSoundFileMemoryRawAdd, SoundComposer.ItemSoundFileFromEditorAdd,or SoundComposer.ItemSoundFileFromRecorderAdd.

bDownMixToMono

Boolean flag specifying if there is the need of a downmix in order to store a stereo sound file into a mono channel of the stream.

Supported values are the following:

Mnemonic Value

Meaning

BOOL_FALSE

Keep stereo channels separated

BOOL_TRUE

Downmix stereo channels to mono

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred, check the LastError property value in order to get the error code

enumErrorCodes.ERR_NOERROR (0)

The method call was successful