Inserted "stdio catch" in wxExecute. The activation is controlled by wxProcess.
Completed some TODO in wxMMedia (wxSoundUlaw, ...) Reworked the PCM converted: it should be simpler to add converters now and it is cleaner. Implemented status information in wxVideoWindows but it doesn't work on my Win98SE (UNSUPPORTED_FUNCTION) Changed *ERR into *ERROR Added a TODO: we must detect the best format in wxSoundWindows git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6311 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -325,7 +325,7 @@ wxString wxSoundFileStream::GetCodecName() const
|
||||
|
||||
wxUint32 wxSoundFileStream::GetLength()
|
||||
{
|
||||
if (m_input && !m_prepared && GetError() == wxSOUND_NOERR)
|
||||
if (m_input && !m_prepared && GetError() == wxSOUND_NOERROR)
|
||||
return (PrepareToPlay()) ? m_length : 0;
|
||||
|
||||
return m_length;
|
||||
@@ -333,7 +333,7 @@ wxUint32 wxSoundFileStream::GetLength()
|
||||
|
||||
wxUint32 wxSoundFileStream::GetPosition()
|
||||
{
|
||||
if (!m_prepared && m_input != NULL && GetError() == wxSOUND_NOERR)
|
||||
if (!m_prepared && m_input != NULL && GetError() == wxSOUND_NOERROR)
|
||||
PrepareToPlay();
|
||||
|
||||
return m_length-m_bytes_left;
|
||||
@@ -341,7 +341,7 @@ wxUint32 wxSoundFileStream::GetPosition()
|
||||
|
||||
wxUint32 wxSoundFileStream::SetPosition(wxUint32 new_position)
|
||||
{
|
||||
if (!m_prepared && m_input != NULL && GetError() == wxSOUND_NOERR)
|
||||
if (!m_prepared && m_input != NULL && GetError() == wxSOUND_NOERROR)
|
||||
PrepareToPlay();
|
||||
|
||||
if (!m_prepared)
|
||||
|
Reference in New Issue
Block a user