feat(tracker): multithreading is enabled with a separate bool toggle

This commit is contained in:
5684185+vsariola@users.noreply.github.com
2026-01-31 20:50:00 +02:00
parent 4bb5df9c87
commit 287bd036a6
7 changed files with 44 additions and 25 deletions

View File

@ -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