M player/channel.go +5 -1
@@ 108,7 108,11 @@ func (c *Channel) RenderBuf(lenSamples i
// XXX ?
//buf := c.instrumentPlayer.RenderBuf(1.0, lenSamples)
//buf := c.instrumentPlayer.RenderBuf2(lenSamples)
- ret, buf := c.instrumentPlayer.ProcessTickBuf(lenSamples)
+ //ret, buf := c.instrumentPlayer.ProcessTickBuf(lenSamples)
+ mixingVol := Ctx.Player.MixingVol
+ // XXX
+ //mixingVol := -1.0
+ ret, buf := c.instrumentPlayer.ProcessTickBuf(mixingVol)
_ = ret
//pp(ret)
//buf := c.instrumentPlayer.RenderTick(lenSamples)
M player/channelmixer.go +3 -2
@@ 99,11 99,12 @@ func (cm *ChannelMixer) MixBufTest(tickS
bufs = append(bufs, buf)
}
- if true {
+ //if true {
+ if false {
DumpBuf("/tmp/channel_buf1.raw", bufs[0])
DumpBuf("/tmp/channel_buf2.raw", bufs[1])
- pp(2)
+ //pp(2)
}
// Result buffer ?
M player/instrumentplayer.go +2 -1
@@ 119,7 119,8 @@ func (ip *InstrumentPlayer) ProcessTick(
func (ip *InstrumentPlayer) ProcessTickBuf(
//func (ip *InstrumentPlayer) ProcessTickBuf(tickSize int,
mixingVol int) (bool, [][2]float64) {
- fmt.Println("InstrumentPlayer ProcessTickBuf")
+
+ printfln("InstrumentPlayer ProcessTickBuf mixingVol: {}", mixingVol)
var _ = `
//baseNote := notes["C-4"]