mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-18 21:14:31 -04:00
refactor(tracker): Rewrote the sequencer loop to use simple mutex
This commit is contained in:
15
sointu.go
15
sointu.go
@ -76,6 +76,21 @@ func Render(synth Synth, buffer []float32) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
type AudioSink interface {
|
||||
WriteAudio(buffer []float32) (err error)
|
||||
Close() error
|
||||
}
|
||||
|
||||
type AudioSource interface {
|
||||
ReadAudio(buffer []float32) (n int, err error)
|
||||
Close() error
|
||||
}
|
||||
|
||||
type AudioContext interface {
|
||||
Output() AudioSink
|
||||
Close() error
|
||||
}
|
||||
|
||||
// UnitParameter documents one parameter that an unit takes
|
||||
type UnitParameter struct {
|
||||
Name string // thould be found with this name in the Unit.Parameters map
|
||||
|
Reference in New Issue
Block a user