* Various fixes

* Introduced FinishPreparation() in wxSoundFileStream as a conclusion
  to PrepareToPlay()


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6010 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Guilhem Lavaux
2000-02-14 18:09:24 +00:00
parent 2133c25075
commit a31c84f389
5 changed files with 66 additions and 14 deletions

View File

@@ -168,6 +168,7 @@ bool wxSoundWave::PrepareToPlay()
}
case DATA_SIGNATURE: // "data"
end_headers = TRUE;
FinishPreparation(len);
break;
default:
m_input->SeekI(len, wxFromCurrent);
@@ -308,11 +309,9 @@ bool wxSoundWave::FinishRecording()
// We can't but there is no error.
return TRUE;
if (m_len == 0)
if (m_bytes_left == 0)
return TRUE;
// TODO: Update headers when we stop before the specified time (if possible)
return TRUE;
}