Music

  • C++

更新时间不可用

描述音乐资源的详细信息。

C++
struct Music {
    int64_t songCode;
    const char* name;
    const char* singer;
    const char* poster;
    const char* releaseTime;
    int32_t durationS;
    int32_t type;
    int32_t pitchType;
    int32_t lyricCount;
    int32_t* lyricList;
    int32_t climaxSegmentCount;
    ClimaxSegment* climaxSegmentList;
    int32_t mvPropertyCount;
    MvProperty* mvPropertyList;
};

属性

参数名描述
songCode

音乐资源的 ID,用于标识一个音乐条目。

name

音乐资源的名称。

singer

歌手名称。

poster

音乐海报的下载链接。

releaseTime

音乐资源的发布时间。

durationS

音乐资源的总时长(单位为秒)。

type

音乐资源的类型:

  • 1:单轨道,左声道为伴奏,右声道为原唱。
  • 2:单轨道,仅包含伴奏。
  • 3:单轨道,仅包含原唱。
  • 4:多轨音频。
pitchType

歌曲是否支持音高评分:

  • 1:支持音高评分。
  • 2:不支持音高评分。
lyricCount

该歌曲可用的歌词数量。

lyricList

支持的歌词格式:

  • 0:XML 格式。
  • 1:LRC 格式。
climaxSegmentCount

高潮片段的数量。

climaxSegmentList

高潮片段列表。详见 ClimaxSegment。

mvPropertyCount

MV 的数量。如果该值大于 0,表示当前音乐存在 MV 资源。

mvPropertyList

MV 属性列表。

表格内容超出当前宽度,可横向滚动查看更多列。

这个页面有帮助吗?