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