mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-15 17:11:20 +01:00
Fix inability to convert sample format from 16 to 32 bits
This commit is contained in:
@@ -157,8 +157,8 @@ bool Sequence::ConvertToSampleFormat(sampleFormat format, bool* pbChanged)
|
||||
|
||||
bool bSuccess = true;
|
||||
{
|
||||
SampleBuffer bufferOld(mMaxSamples, oldFormat);
|
||||
SampleBuffer bufferNew(mMaxSamples, format);
|
||||
SampleBuffer bufferOld(oldMaxSamples, oldFormat);
|
||||
SampleBuffer bufferNew(oldMaxSamples, format);
|
||||
|
||||
for (size_t i = 0, nn = mBlock.size(); i < nn && bSuccess; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user