feat(sointu): add SynthService for recompiling the synth when needed

This commit is contained in:
vsariola
2021-02-05 22:21:46 +02:00
parent 6307dd51de
commit 5e7bd75b36
5 changed files with 85 additions and 62 deletions

View File

@ -120,6 +120,10 @@ func Render(synth Synth, buffer []float32) error {
return nil
}
type SynthService interface {
Compile(patch Patch) (Synth, error)
}
type AudioSink interface {
WriteAudio(buffer []float32) (err error)
Close() error