]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxMMedia/sndmulaw.cpp
jconfig.h uses configures results
[wxWidgets.git] / utils / wxMMedia / sndmulaw.cpp
index f42e5a464e738a0360f838e35e414efbd2717b74..3f45098f4060db0a3267a7c7abdccf683ad8f575 100644 (file)
@@ -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;