mirror of
https://github.com/vsariola/sointu.git
synced 2025-11-12 12:52:53 -05:00
feat: add multithreaded rendering to the tracker side
The compiled player does not support multithreading, but with this, users can already start composing songs with slightly less powerful machines, even when targeting high-end machines. Related to #199
This commit is contained in:
parent
c583156d1b
commit
9b9dc3548f
5
song.go
5
song.go
@ -293,7 +293,10 @@ func (l Score) LengthInRows() int {
|
||||
|
||||
// Copy makes a deep copy of a Score.
|
||||
func (s *Song) Copy() Song {
|
||||
return Song{BPM: s.BPM, RowsPerBeat: s.RowsPerBeat, Score: s.Score.Copy(), Patch: s.Patch.Copy()}
|
||||
ret := *s
|
||||
ret.Score = s.Score.Copy()
|
||||
ret.Patch = s.Patch.Copy()
|
||||
return ret
|
||||
}
|
||||
|
||||
// Assuming 44100 Hz playback speed, return the number of samples of each row of
|
||||
|
||||
Reference in New Issue
Block a user