mirror of
https://github.com/vsariola/sointu.git
synced 2026-02-20 23:23:23 -05:00
feat(tracker): multithreading is enabled with a separate bool toggle
This commit is contained in:
parent
4bb5df9c87
commit
287bd036a6
@ -346,7 +346,7 @@ func (m *SongModel) WriteWav(w io.WriteCloser, pcm16 bool) {
|
||||
b := make([]byte, 32+2)
|
||||
rand.Read(b)
|
||||
name := fmt.Sprintf("%x", b)[2 : 32+2]
|
||||
data, err := sointu.Play(m.synthers[m.syntherIndex], song, func(p float32) {
|
||||
data, err := sointu.Play(m.curSynther, song, func(p float32) {
|
||||
txt := fmt.Sprintf("Exporting song: %.0f%%", p*100)
|
||||
TrySend(m.broker.ToModel, MsgToModel{Data: Alert{Message: txt, Priority: Info, Name: name, Duration: defaultAlertDuration}})
|
||||
}) // render the song to calculate its length
|
||||
|
||||
Reference in New Issue
Block a user