Copyright © 2006-2018 MultiMedia Soft

StartFromFileEncrypted method

Previous pageReturn to chapter overviewNext page



Starts a new recording session from an input sound file that was previously encrypted through the EncryptCurrentSession method or through the CryptSound™ application.


A successful call to this method will fire the RecordingStarted event followed by a number of RecordingPerc events and finally by the RecordingStopped event.


For details about encryption/decryption features see the How to protect your recording sessions through encryption tutorial.





[Visual Basic]

control.StartFromFileEncrypted (

strOutputPath as String,

strInputPath as String,

strDecryptionKey as String

) as enumErrorCodes



short control.StartFromFileEncrypted (

LPCTSTR strOutputPath,

LPCTSTR strInputPath,

LPCTSTR strDecryptionKey









String representing the absolute pathname of the output file that will contain the recorded data. If this pathname should contain invalid characters, they would be automatically changed into an underscore '_' character..

If the string is left empty, the recording session will be performed in memory.


String representing the absolute pathname of the encrypted input sound file.


String containing the key used to originally encrypt the song: its length can be from a minimum of 16 characters to a maximum of 32 characters.




Return value






Negative value

An error occurred, check the LastError property value in order to see the error code meaning

enumErrorCodes.ERR_NOERROR (0)

The method call was successful.