1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-25 15:53:52 +02:00

Specify whether to throw on bad read in Mixer and WaveTrackCache...

... Do throw when exporting or mixing-and-rendering; don't if playing back or
drawing a spectrogram, but then just use zeroes.
This commit is contained in:
Paul Licameli
2016-12-22 17:08:29 -05:00
parent 987b038fd8
commit 38b8e57e4e
7 changed files with 29 additions and 13 deletions

View File

@@ -648,7 +648,8 @@ public:
// Returns null on failure
// Returned pointer may be invalidated if Get is called again
// Do not DELETE[] the pointer
constSamplePtr Get(sampleFormat format, sampleCount start, size_t len);
constSamplePtr Get(
sampleFormat format, sampleCount start, size_t len, bool mayThrow);
private:
void Free();