Copyright © 2011-2023 MultiMedia Soft

GetSoundFileSizeAfterLoad method

Previous pageReturn to chapter overviewNext page

Remarks

 

Returns the size in bytes of the given sound file when it will be decoded and stored in memory without the need to load the sound file itself in memory.

Accepted formats are the same of the LoadSound method.

 

 

Syntax

 

[Visual Basic]

Public Function GetSoundFileSizeAfterLoad (

strFileName as String

) as Int32


 

[C#]

public Int32 GetSoundFileSizeAfterLoad (

string strFileName

);


 

[C++]

public: Int32 GetSoundFileSizeAfterLoad (

string strFileName

);


 

 

 

Parameter

Description

 

 

strPathname

String containing the absolute pathname of the song file to check.

 

 

 

Return value

 

Value

Meaning

 

 

Value > 0

Duration expressed in milliseconds

Negative value

An error occurred: see the LastError property for further error details or for a list of the possible error values.