mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-19 05:24:48 -04:00
refactor(tracker): split NewModelPlayer into NewModel, NewPlayer
This commit is contained in:
parent
37769fcc9c
commit
8074fd71d3
@ -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
|
||||
|
Reference in New Issue
Block a user