Copyright © 2008-2023 MultiMedia Soft

SetStoreMode method

Previous pageReturn to chapter overviewNext page

Remarks

 

Sets the mode used by the control to store sound data inside the editing session. The current store mode can be obtained using the GetStoreMode method.

 

 

Syntax

 

[Visual Basic]

Public Function SetStoreMode (

nMode as enumStoreModes

) as enumErrorCodes


 

[C#]

public enumErrorCodes SetStoreMode (

enumStoreModes nMode

);


 

[C++]

public: enumErrorCodes SetStoreMode (

enumStoreModes nMode

);


 

 

Parameter

Description

 

 

nMode

Number representing the store mode.

Supported values are the following:

Mnemonic constant

Value

Meaning

STORE_MODE_MEMORY_BUFFER (Default)

0

Sound data is stored inside a memory buffer: the pointer to the memory buffer can be obtained through a call to the GetMemoryPtr method while its size in bytes can be obtained using the GetMemorySize method.

STORE_MODE_TEMP_FILE

1

Sound data is stored inside a temporary file: the absolute pathname of the temporary file can be retrieved through the GetTempFilePathname method while its size in bytes can be obtained using the GetTempFileSize64 method.

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred. Check the LastError property value in order to see the last error.

enumErrorCodes.ERR_NOERROR (0)

The method call was successful.