From: Vaughan Johnson <vaughan@au...> - 2011-12-03 01:39:08
Is this a known bug?
* New project.
* Tracks > Add New > Audio Track
* track menu > Set Sample Format > 16-bit int.
* Open Audacity. Open the saved project. Track shows as 32-bit float.
Ran into this testing the sample format conversion changes I committed
yesterday. I figured out where the problem is, basically that in the
.aup, only the sequence knows its sample format, but in
WaveTrack::HandleXMLTag(), it always sets it to 32-bit float and doesn't
get updated. This is because it calls NewWaveTrack with no args, so gets
the default sample format value of 0, which is not valid, but gets
treated as 32-bit float.
In a more complicated test, where there's an actual sequence, at the
last step, Sequence knows it is 16-bit int, but the WaveTrack doesn't
get notified, so thinks it is 32-bit float. :-(
Makes it tricky to test the Sequence::ConvertToSampleFormat() changes I
Get latest updates about Open Source Projects, Conferences and News.