Copyright © 2005-2018 MultiMedia Soft

CopyExportedWavToMemory method

Previous pageReturn to chapter overviewNext page



After calling the RequestSoundExportToWav method, in order to export the loaded song into a WAV file stored in memory, and receiving a successful ExportToWavStop event, this method allows copying into a memory buffer, allocated by the container application, the full contents of the memory WAV file: after this call the original memory buffer is immediately discarded from memory.


For further details about exporting a sound to a file in WAV format take a look to the How to export the loaded song into a WAV file section.





[Visual Basic]

Public Function CopyExportedWavToMemory (

nPlayerIndex as Int16,

pBuffer() as Byte,

nBufferLength as Int32

) as enumErrorCodes



public enumErrorCodes CopyExportedWavToMemory (

Int16 nPlayerIndex,

byte[] pBuffer,

Int32 nBufferLength




public: enumErrorCodes CopyExportedWavToMemory (

Int16 nPlayerIndex,

unsigned char __gc[] pBuffer,

Int32 nBufferLength









Number representing the zero-based index of the involved player


Buffer where WAV memory file contents will be copied


Length in bytes of the given buffer



Return value






Negative value

An error occurred (see the LastError property for further error details)

enumErrorCodes.NOERROR (0)

The method call was successful.