Copyright © 2006-2023 MultiMedia Soft

RecordedSound.GetMemorySize method

Previous pageReturn to chapter overviewNext page

Remarks

 

If sound data resulting from a recording session has been stored in memory, this method will return the size in bytes of the buffer. Note that, during the recording session, you can obtain the growing buffer's size in real time through the RecordingSize event.

 

The buffer's address in memory can be retrieved through the RecordedSound.GetMemoryPtr method.

 

For further details about recorded sound methods refer to the RecordedSound class section.

For further details see the How to perform a recording session section.

 

 

Syntax

 

[Visual Basic]

Public Function GetMemorySize (

) as Long


 

[C#]

public long GetMemorySize (

);


 

[C++]

public: long GetMemorySize (

);


 

 

Return value

 

Value

Meaning

 

 

Negative value

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

> 0

The buffer's size in bytes