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:
parent
e984211cce
commit
8342b1e026
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user