refactor(tracker): split NewModelPlayer into NewModel, NewPlayer

This commit is contained in:
5684185+vsariola@users.noreply.github.com
2024-11-02 23:58:38 +02:00
parent 37769fcc9c
commit 8074fd71d3
5 changed files with 16 additions and 12 deletions

View File

@ -73,6 +73,13 @@ const (
const numRenderTries = 10000
func NewPlayer(broker *Broker, synther sointu.Synther) *Player {
return &Player{
broker: broker,
synther: synther,
}
}
// Process renders audio to the given buffer, trying to fill it completely. If
// the buffer is not filled, the synth is destroyed and an error is sent to the
// model. context tells the player which MIDI events happen during the current