mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-25 15:53:52 +02:00
WaveTrack::Get, WaveClip::GetSamples take a mayThrow=true argument...
... and pass non-default in all needed places. Don't throw, don't put up error dialogs, in drawing or hit-test code.
This commit is contained in:
@@ -252,7 +252,8 @@ class AUDACITY_DLL_API WaveTrack final : public Track {
|
||||
/// guaranteed that the same samples are affected.
|
||||
///
|
||||
bool Get(samplePtr buffer, sampleFormat format,
|
||||
sampleCount start, size_t len, fillFormat fill=fillZero) const;
|
||||
sampleCount start, size_t len,
|
||||
fillFormat fill = fillZero, bool mayThrow = true) const;
|
||||
bool Set(samplePtr buffer, sampleFormat format,
|
||||
sampleCount start, size_t len);
|
||||
void GetEnvelopeValues(double *buffer, size_t bufferLen,
|
||||
|
||||
Reference in New Issue
Block a user