JVCL Help:ID3 LongGenreToID

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Converts a prefix of a string to a genre identifier.

run\JvId3v2Types.pas


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.

run\JvId3v2Types.pas


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

run\JvId3v2Types.pas


See Also

ID3_Genres, ID3_GenreToID, ID3_IDToGenre

run\JvId3v2Types.pas


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