* 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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user