跳转至

Class qqmusic::SongFileType

ClassList > qqmusic > SongFileType

未加密的歌曲文件类枚举 More...

  • #include <song.h>

Inherits the following classes: qqmusic::BaseMediaFileType

Public Types

Type Name
enum Type
未加密歌曲类型枚举

Public Functions

Type Name
SongFileType (Type type)
通过类型枚举初始化
SongFileType ()
默认初始化函数, 默认格式: MP3_128格式
virtual bool encrypted () override
该格式是否加密
virtual std::string_view expandation () override
获取歌曲类ID扩展
virtual std::string_view prefix () override
获取歌曲类ID前缀
~SongFileType () override

Public Functions inherited from qqmusic::BaseMediaFileType

See qqmusic::BaseMediaFileType

Type Name
virtual bool encrypted () = 0
是否加密
virtual std::string_view expandation () = 0
获取扩展名
virtual std::string_view prefix () = 0
获取基类ID
virtual ~BaseMediaFileType () = default

Detailed Description

See also: BaseMediaFileType

Public Types Documentation

enum Type

未加密歌曲类型枚举

enum qqmusic::SongFileType::Type {
    MASTER,
    ATMOS_2,
    ATMOS_51,
    FLAC,
    OGG_640,
    OGG_320,
    OGG_192,
    OGG_96,
    MP3_320,
    MP3_128,
    ACC_192,
    ACC_96,
    ACC_48
};


Public Functions Documentation

function SongFileType [1/2]

通过类型枚举初始化

inline qqmusic::SongFileType::SongFileType (
    Type type
) 

Parameters:

  • type 类型枚举

See also: SongFileType::Type

Exception:

  • 若提供的枚举不合法

function SongFileType [2/2]

默认初始化函数, 默认格式: MP3_128格式

inline qqmusic::SongFileType::SongFileType () 

See also: SongFileType::Type


function encrypted

该格式是否加密

inline virtual bool qqmusic::SongFileType::encrypted () override

Returns:

总是返回false

Implements qqmusic::BaseMediaFileType::encrypted


function expandation

获取歌曲类ID扩展

inline virtual std::string_view qqmusic::SongFileType::expandation () override

Returns:

返回std::string格式的类型扩展名

Implements qqmusic::BaseMediaFileType::expandation


function prefix

获取歌曲类ID前缀

inline virtual std::string_view qqmusic::SongFileType::prefix () override

Returns:

返回std::string格式的类型前缀

Implements qqmusic::BaseMediaFileType::prefix


function ~SongFileType

qqmusic::SongFileType::~SongFileType () override


The documentation for this class was generated from the following file include/qqmusic/song.h