Copyright © 2006-2018 MultiMedia Soft

RecordedSound.GetMemorySize method

Previous pageReturn to chapter overviewNext page



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.





[Visual Basic]

Public Function GetMemorySize (

) as Int32



public Int32 GetMemorySize (




public: Int32 GetMemorySize (




Return value






Negative value

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

> 0

The buffer's size in bytes