支持频谱显示,感谢哈哈哈群友的代码
This commit is contained in:
@@ -7,9 +7,7 @@ class Music {
|
||||
public:
|
||||
virtual ~Music() = default; // 添加虚析构函数
|
||||
|
||||
virtual bool Download(const std::string& song_name) = 0;
|
||||
virtual bool Play() = 0;
|
||||
virtual bool Stop() = 0;
|
||||
virtual bool Download(const std::string& song_name, const std::string& artist_name = "") = 0;
|
||||
virtual std::string GetDownloadResult() = 0;
|
||||
|
||||
// 新增流式播放相关方法
|
||||
@@ -17,6 +15,7 @@ public:
|
||||
virtual bool StopStreaming() = 0; // 停止流式播放
|
||||
virtual size_t GetBufferSize() const = 0;
|
||||
virtual bool IsDownloading() const = 0;
|
||||
virtual int16_t* GetAudioData() = 0;
|
||||
};
|
||||
|
||||
#endif // MUSIC_H
|
||||
Reference in New Issue
Block a user