1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-12 06:01:13 +02: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

@ -276,12 +276,12 @@ void ImportRaw(wxWindow *parent, const wxString &fileName,
((float *)buffer.ptr())[j] =
((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;
}
updateResult = progress.Update(
framescompleted.as_long_long(),
totalFrames.as_long_long()