mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-18 21:14:31 -04:00
fix(sointu): fix sync data getting output from play & test it
This commit is contained in:
@ -45,7 +45,7 @@ func TestAllRegressionTests(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatalf("Compiling patch failed: %v", err)
|
||||
}
|
||||
buffer, _, err := sointu.Play(synth, song)
|
||||
buffer, syncBuffer, err := sointu.Play(synth, song)
|
||||
buffer = buffer[:song.Score.LengthInRows()*song.SamplesPerRow()*2] // extend to the nominal length always.
|
||||
if err != nil {
|
||||
t.Fatalf("Play failed: %v", err)
|
||||
@ -72,6 +72,9 @@ func TestAllRegressionTests(t *testing.T) {
|
||||
}
|
||||
}
|
||||
compareToRawFloat32(t, buffer, testname+".raw")
|
||||
if strings.Contains(testname, "sync") {
|
||||
compareToRawFloat32(t, syncBuffer, testname+"_syncbuf.raw")
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user