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

M player/channelmixer.go
M player/player.go
M player/channelmixer.go +20 -0
@@ 149,10 149,24 @@ func (cm *ChannelMixer) MixBufTest(tickS
 	return resBuf
 }
 
+// ?
+func (cm *ChannelMixer) MixExtra() [][2]float64 {
+	return nil
+}
+
 func (cm *ChannelMixer) MixBuf() [][2]float64 {
 	return nil
 }
 
+// internal
+// function for use in player (?)
+func (cm *ChannelMixer) MixChannelsBufTick(tickSize int) [][2]float64 {
+	// XXX
+	buf := cm.RenderTick(tickSize)
+	
+	return buf
+}
+
 // XXX ?
 //func (cm *ChannelMixer) ProcessTickBuf(tickSize int) [][2]float64 {
 func (cm *ChannelMixer) RenderTick(tickSize int) [][2]float64 {

          
@@ 174,3 188,9 @@ func (cm *ChannelMixer) ProcessTick() {
 	pp(2)
 }
 */
+
+// Real-time update ?
+func (cm *ChannelMixer) Update(dt float64) {
+	s := cm.InstrumentPlayers[0]
+	_ = s
+}

          
M player/player.go +2 -1
@@ 861,7 861,8 @@ func (p *Player) _renderTick() ([][2]flo
 	
 	tickSize := p.GetTickSize()
 	//buf := p.ChannelSys.ChannelMixer.ProcessTickBuf(tickSize)
-	buf := p.ChannelSys.ChannelMixer.RenderTick(tickSize)
+	//buf := p.ChannelSys.ChannelMixer.RenderTick(tickSize)
+	buf := p.ChannelSys.ChannelMixer.MixChannelsBufTick(tickSize)
 	//buf := p.ChannelSys.ChannelMixer.RenderTick()
 
 	// Force mix