···415415-- Label for specific arguments based on message type
416416function get_arg_label(msg_type, arg_idx, val)
417417 -- Many request types have DMST as the first argument
418418- if arg_idx == 1 and (msg_type == 0x1000 or msg_type == 0x2002 or msg_type == 0x3000 or msg_type == 0x1105 or msg_type == 0x1103 or msg_type == 0x2003 or msg_type == 0x2204 or msg_type == 0x2104 or msg_type == 0x2b04 or msg_type == 0x2004 or msg_type == 0x2102 or msg_type == 0x2904 or msg_type == 0x2c04 or msg_type == 0x3e03 or msg_type == 0x3007 or msg_type == 0x3100) then
418418+ if arg_idx == 1 and (
419419+ msg_type == 0x1000 or -- Root Menu
420420+ msg_type == 0x1001 or -- Genre Menu
421421+ msg_type == 0x1002 or -- Artist Menu
422422+ msg_type == 0x1003 or -- Album Menu
423423+ msg_type == 0x1004 or -- Track Menu
424424+ msg_type == 0x1006 or -- BPM Menu
425425+ msg_type == 0x1007 or -- Rating Menu
426426+ msg_type == 0x1008 or -- Year Menu
427427+ msg_type == 0x100a or -- Label Menu
428428+ msg_type == 0x100d or -- Color Menu
429429+ msg_type == 0x1010 or -- Time Menu
430430+ msg_type == 0x1011 or -- Bitrate Menu
431431+ msg_type == 0x1012 or -- History Menu
432432+ msg_type == 0x1013 or -- Filename Menu
433433+ msg_type == 0x1014 or -- Key Menu
434434+ msg_type == 0x1101 or -- ArtistsForGenre
435435+ msg_type == 0x1102 or -- AlbumsForArtist
436436+ msg_type == 0x1103 or -- GetTrackList
437437+ msg_type == 0x1105 or -- GetTrackCount
438438+ msg_type == 0x1106 or -- BPM Distances
439439+ msg_type == 0x1114 or -- DistancesForKey
440440+ msg_type == 0x1206 or -- TracksForBpmRange
441441+ msg_type == 0x1214 or -- TracksNearKey
442442+ msg_type == 0x1300 or -- Search
443443+ msg_type == 0x1301 or -- TracksForGenreArtistAlbum
444444+ msg_type == 0x2002 or -- GetMetadata
445445+ msg_type == 0x2003 or -- GetArtwork
446446+ msg_type == 0x2004 or -- GetWaveformPreview
447447+ msg_type == 0x2102 or -- GetTrackStreamingReq
448448+ msg_type == 0x2104 or -- GetCuePoints
449449+ msg_type == 0x2204 or -- GetBeatGrid
450450+ msg_type == 0x2904 or -- GetWaveformDetail
451451+ msg_type == 0x2b04 or -- GetExtCuePoints
452452+ msg_type == 0x2c04 or -- GetAnalysisTag
453453+ msg_type == 0x3000 or -- RenderMenu
454454+ msg_type == 0x3007 or -- SetupBrowseContext
455455+ msg_type == 0x3100 or -- TrackLoadNotification
456456+ msg_type == 0x3e03 -- GetCapabilities
457457+ ) then
419458 return "DMST"
420459 end
421460