JVCL Help:ID3 LongGenreToID
From Project JEDI Wiki
Jump to navigationJump to searchJVCL Help: ID3_LongGenreToID function
[+] JvId3v2Types.pas Functions
Search in JVCL Help
Search in all projectsSummary
Converts a prefix of a string to a genre identifier.
Pascal
run\JvId3v2Types.pas
functionID3_LongGenreToID(constALongGenre: string; constInclWinampGenres: Boolean = True): Integer;
Parameters
Parameters | Description |
const ALongGenre: string | The genre string to convert. |
const InclWinampGenres: Boolean = True | Specifies whether to include the genres introduced by Winamp. |
Description
Use the ID3_LongGenreToID function to convert a prefix of a string to a genre identifier (offset of a genre in a predefined list).
For example:
Calling | Returns | Meaning |
ID3_LongGenreToID('Pop or something') | 13 | Pop |
ID3_LongGenreToID('Pop/Funk ??') | 62 | Pop/Funk |
ID3_LongGenreToID('Pop-Folk alike') | 53 | Pop-Folk |
ID3_LongGenreToID('Rock') | 17 | Rock |
ID3_LongGenreToID('Rocks') | 255 | ?? |
ID3_LongGenreToID('Rock & Roll') | 78 | Rock & Roll |
ID3_LongGenreToID('Rock & Rolls') | 17 | Rock |
See Also
ID3_Genres, ID3_GenreToID, ID3_IDToGenre
About
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page