From 6b0c5c096b01bc280435d711d5459b24df29582a Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Sun, 2 Apr 2017 21:19:12 -0400 Subject: [PATCH] WaveClip::Flush returns void, throws on error --- src/WaveClip.cpp | 4 +--- src/WaveClip.h | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/WaveClip.cpp b/src/WaveClip.cpp index ac78d0511..d4a6855ff 100644 --- a/src/WaveClip.cpp +++ b/src/WaveClip.cpp @@ -1471,7 +1471,7 @@ if (result) } } -bool WaveClip::Flush() +void WaveClip::Flush() // NOFAIL-GUARANTEE that the clip will be in a flushed state. // PARTIAL-GUARANTEE in case of exceptions: // Some initial portion (maybe none) of the append buffer of the @@ -1498,8 +1498,6 @@ bool WaveClip::Flush() } //wxLogDebug(wxT("now sample count %lli"), (long long) mSequence->GetNumSamples()); - - return success; } bool WaveClip::HandleXMLTag(const wxChar *tag, const wxChar **attrs) diff --git a/src/WaveClip.h b/src/WaveClip.h index 3d1fef9fe..1c45da356 100644 --- a/src/WaveClip.h +++ b/src/WaveClip.h @@ -301,7 +301,7 @@ public: size_t len, unsigned int stride=1, XMLWriter* blockFileLog = NULL); /// Flush must be called after last Append - bool Flush(); + void Flush(); void AppendAlias(const wxString &fName, sampleCount start, size_t len, int channel,bool useOD);