fix sample saving

This commit is contained in:
tildearrow 2022-05-03 17:41:10 -05:00
parent 30e60f643c
commit 28e7b86728

View file

@ -71,7 +71,7 @@ bool DivSample::save(const char* path) {
} }
sf_command(f, SFC_SET_INSTRUMENT, &inst, sizeof(inst)); sf_command(f, SFC_SET_INSTRUMENT, &inst, sizeof(inst));
sf_write_short(f,data16,length16); sf_writef_short(f,data16,samples);
sf_close(f); sf_close(f);