1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-01-29 16:27:03 +01:00

Fix bug 597

24-bit int imports as float and converted by Append.
This commit is contained in:
Steve Daulton
2017-08-21 16:09:41 +01:00
parent e984211cce
commit 8342b1e026

View File

@@ -277,7 +277,7 @@ void ImportRaw(wxWindow *parent, const wxString &fileName,
((float *)srcbuffer.ptr())[numChannels*j+c];
}
iter->get()->Append(buffer.ptr(), format, block);
iter->get()->Append(buffer.ptr(), (format == int16Sample)?int16Sample:floatSample, block);
}
framescompleted += block;
}