LoadSoundFastFromZip method |
|
Remarks
Loads a specific entry (sound file) from the specified ZIP file. This method acts exactly as the LoadSoundFromZip method but performs a less detailed analysis for files in MP3 format
A successful call to this method invokes the CallbackForPlayersEvents delegate with the nEvent parameter set to EV_SOUND_LOADED.
For further details about using ZIP management refer to the How to manage ZIP files tutorial.
Syntax
[Visual Basic] Public Function LoadSoundFastFromZip ( nPlayerIndex as Int16, strZipPathname as String, strPassword as String, strEntryName as String, bFailOnLowMemory as Boolean ) as enumErrorCodes |
[C#] public enumErrorCodes LoadSoundFastFromZip ( Int16 nPlayerIndex, string strZipPathname, string strPassword, string strEntryName, bool bFailOnLowMemory ); |
[C++] public: enumErrorCodes LoadSoundFastFromZip ( Int16 nPlayerIndex, string strZipPathname, string strPassword, string strEntryName, bool bFailOnLowMemory ); |
Parameter |
Description |
||||||
|
|
||||||
nPlayerIndex |
Number representing the zero-based index of the player that will load the sound |
||||||
strZipPathname |
String containing the absolute pathname of the ZIP file to load. |
||||||
strPassword |
String containing the optional password for accessing the requested entry; leave it empty if not needed. |
||||||
strEntryName |
String representing the name of the entry to extract and load. |
||||||
bFailOnLowMemory |
Flag that determines if, for security purposes, loading of the given entry should fail in case there should be no enough memory for storing the unzipped entry. Supported values are the following:
|
Return value
Value |
Meaning |
|
|
enumErrorCodes.NOERROR (0) |
The song file has been loaded successfully. |
Negative value |
An error occurred: see the LastError property for further error details or for a list of the possible error values. |