Copyright © 2011-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 SoundComposerMan class and the How to compose a sound tutorial.

 

 

Syntax

 

[Visual Basic]

Public Function ItemSoundFileDownmixToMonoSet (

nUniqueId as Int32,

bDownMixToMono as bool

) as enumErrorCodes


 

[C#]

public enumErrorCodes ItemSoundFileDownmixToMonoSet (

Int32 nUniqueId,

bool bDownMixToMono

);


 

[C++]

public: enumErrorCodes ItemSoundFileDownmixToMonoSet (

Int32 nUniqueId,

bool 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:

Value

Meaning

false

Keep stereo channels separated

true

Downmix stereo channels to mono

 

 

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.