X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4d6306eb4da8cdac4b5dee9784959672c233eec8..ba681060f36767a2682b8547871af2c6f8159955:/utils/wxMMedia/sndmulaw.cpp diff --git a/utils/wxMMedia/sndmulaw.cpp b/utils/wxMMedia/sndmulaw.cpp index f42e5a464e..3f45098f40 100644 --- a/utils/wxMMedia/sndmulaw.cpp +++ b/utils/wxMMedia/sndmulaw.cpp @@ -1,3 +1,12 @@ +//////////////////////////////////////////////////////////////////////////////// +// Name: sndmulaw.cpp +// Purpose: wxMMedia +// Author: Guilhem Lavaux +// Created: 1997 +// Updated: December 1998 +// Copyright: (C) 1997, 1998, Guilhem Lavaux +// License: wxWindows license +//////////////////////////////////////////////////////////////////////////////// #ifdef __GNUG__ #pragma implementation "sndmulaw.h" #endif @@ -27,7 +36,7 @@ void wxSoundMulawCodec::Decode() InitMode(DECODING); - while (!Good()) { + while (!StreamOk()) { smp = ulaw2linear(m_in_sound->GetChar()); #ifdef USE_BE_MACH m_out_sound->PutChar((smp & 0xff00) >> 8); @@ -50,7 +59,7 @@ void wxSoundMulawCodec::Encode() InitMode(ENCODING); - while (!Good()) { + while (!StreamOk()) { #ifdef USE_BE_MACH smp = ((unsigned short)m_in_sound->GetChar()) << 8; smp |= m_in_sound->GetChar() & 0xff;