Copyright © 2011-2019 MultiMedia Soft

GetFileInfo method

Previous pageReturn to chapter overviewNext page

Remarks

 

Obtains a specific information about the loaded sound.

 

 

Syntax

 

[Visual Basic]

Public Function GetFileInfo (

nInfo as enumEditorSoundInfo

) as String


 

[C#]

public string GetFileInfo (

enumEditorSoundInfo nInfo

);


 

[C++]

public: string GetFileInfo (

enumEditorSoundInfo nInfo

);


 

 

Parameter

Description

 

 

nInfo

Type of information.

Supported values are the following:

Mnemonic constant

Value

Meaning

EDITOR_SOUND_INFO_WMA_CODEC

0

WMA Codec (for example "Windows Media Audio 9").

Only available when the format of the loaded sound is SOUNDTYPE_WMA; the format of the loaded sound file can be determined through the GetFileType method.

EDITOR_SOUND_INFO_WAV_TAG_FORMAT

1

WAV tag format (for example "GSM 6.10; 11,025 kHz; Mono".

Only available when the format of the loaded sound is SOUNDTYPE_WAV or SOUNDTYPE_WAV_ENCODED; the format of the loaded sound file can be determined through the GetFileType method.

EDITOR_SOUND_INFO_WAV_FORMAT

2

WAV format (for example "WAV GSM 6.10").

Only available when the format of the loaded sound is SOUNDTYPE_WAV or SOUNDTYPE_WAV_ENCODED; the format of the loaded sound file can be determined through the GetFileType method.

EDITOR_SOUND_INFO_FREQUENCY

3

Frequency (for example "44100")

EDITOR_SOUND_INFO_CHANNELS

4

Number of channels (for example "2" for Stereo files)

EDITOR_SOUND_INFO_BITS_PER_SAMPLE

5

Number of bits per sample (for example "16" )

 

Return value

 

Value

Meaning

 

 

Empty string

Information not available or an error occurred (see the LastError property for further error details)

Valid string

The requested information