2 files changed, 5 insertions(+), 1 deletions(-)

M editor/gui/gui.go
M player/player.go
M editor/gui/gui.go +1 -1
@@ 309,7 309,7 @@ func (g *Gui) switchPattern(n int) {
 func (g *Gui) updateGui(dt float64) {
 	vol := 0
 
-	if player.Ctx.Player.Channels[0].Playing() {
+	if player.Ctx.Player.GetChannels()[0].Playing() {
 		vol = 100
 	}
 

          
M player/player.go +4 -0
@@ 112,6 112,10 @@ func (p *Player) Reset() {
 	p.Tick = 0
 }
 
+func (p *Player) GetChannels() []*Channel {
+	return p.ChannelSys.Channels
+}
+
 /*
 // ? Create/recreate channels
 func (p *Player) createChannels(n int) {