refactor: move Wav and Raw methods as members of AudioBuffer

This commit is contained in:
5684185+vsariola@users.noreply.github.com
2023-10-18 14:40:16 +03:00
parent 33625c6f40
commit 0187cc66ec
4 changed files with 114 additions and 115 deletions

View File

@ -145,7 +145,7 @@ func (t *Tracker) exportWav(w io.WriteCloser, pcm16 bool) {
t.Alert.Update(fmt.Sprintf("Error rendering the song during export: %v", err), Error, time.Second*3)
return
}
buffer, err := sointu.Wav(data, pcm16)
buffer, err := data.Wav(pcm16)
if err != nil {
t.Alert.Update(fmt.Sprintf("Error converting to .wav: %v", err), Error, time.Second*3)
return