Copyright © 2001-2018 MultiMedia Soft

GetMp3TagVersion method

Previous pageReturn to chapter overviewNext page

Remarks

 

Retrieves the version of MP3 tag(s) in the loaded sound: note that in the same sound can be present both tag versions 1.x (ID3V1) and 2.x (ID3V2). Further information about tags management can be found inside the How to read TAG information in sound files and How to retrieve basic TAG information from the sound loaded into a player tutorials.

 

The availability of this information requires a prior call to the ReadSoundInfo method.

 

 

Syntax

 

[Visual Basic]

control.GetMp3TagVersion (

nPlayer as Integer

) as enumTagVersions


 

[C++]

short control.GetMp3TagVersion (

short nPlayer

);


 

 

Parameter

Description

 

 

nPlayer

Number representing the zero-based index of the player whose information must be retrieved

 

 

Return value

 

Mnemonic constant

Value

Meaning

ERR_xxx

Negative

The loaded sound is not in MP3 format or an error occurred (see the LastError property for further error details)

TAGVER_NONE

0

No tag available

TAGVER_1

1

Tag ID3V1 is available

TAGVER_11

2

Tag ID3V1.1 is available

TAGVER_2

3

Tag ID3V2 is available

TAGVER_1_2

4

Both tags ID3V1 and ID3V2 are available

TAGVER_11_2

5

Both tags ID3V1.1 and ID3V2 are available