ui界面优化,event handler优化-新增任务池模式,歌词加载优化,新房间管理(可以自动连接) 本地音频搜索算法优化,

This commit is contained in:
Aynakeya
2022-12-31 21:22:35 -08:00
parent 1e18ca1ff2
commit 9d99a74faf
12 changed files with 117 additions and 41 deletions

View File

@@ -7,6 +7,7 @@ type PlaylistMode int
const (
PlaylistModeNormal PlaylistMode = iota
PlaylistModeRandom
PlaylistModeRepeat
)
type Playlist struct {
@@ -17,7 +18,7 @@ type Playlist struct {
}
func (p Playlist) String() string {
return fmt.Sprintf("<Playlist %s>", p.Name)
return fmt.Sprintf("<Playlist %s len:%d>", p.Name, len(p.Medias))
}
func (p *Playlist) Size() int {