]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxMMedia2/lib/sndulaw.cpp
minor correction
[wxWidgets.git] / utils / wxMMedia2 / lib / sndulaw.cpp
index d858bfacc4b68010cdb72002e9264c4c8a9261de..620abb7aa11e92b1bd9cd9cf9a4d438406d59a83 100644 (file)
@@ -9,6 +9,7 @@
 #pragma implementation "sndulaw.cpp"
 #endif
 
+#include <wx/wxprec.h>
 #include "sndbase.h"
 #include "sndfile.h"
 #include "sndpcm.h"
@@ -46,12 +47,12 @@ wxSoundFormatBase *wxSoundFormatUlaw::Clone() const
   return ulaw;
 }
 
-wxUint32 wxSoundFormatUlaw::GetTimeFromByte(wxUint32 bytes) const
+wxUint32 wxSoundFormatUlaw::GetTimeFromBytes(wxUint32 bytes) const
 {
   return (bytes / m_srate);
 }
 
-wxUint32 wxSoundFormatUlaw::GetByteFromTime(wxUint32 time) const
+wxUint32 wxSoundFormatUlaw::GetBytesFromTime(wxUint32 time) const
 {
   return time * m_srate;
 }
@@ -81,17 +82,17 @@ wxSoundStreamUlaw::~wxSoundStreamUlaw()
   delete m_router;
 }
 
-wxSoundStream& wxSoundStreamUlaw::Read(void *buffer, size_t len)
+wxSoundStream& wxSoundStreamUlaw::Read(void *buffer, wxUint32 len)
 {
   return *this;
 }
 
-wxSoundStream& wxSoundStreamUlaw::Write(const void *buffer, size_t len)
+wxSoundStream& wxSoundStreamUlaw::Write(const void *buffer, wxUint32 len)
 {
   wxUint16 *old_linear;
   register wxUint16 *linear_buffer;
   register const wxUint8 *ulaw_buffer;
-  register size_t countdown = len;
+  register wxUint32 countdown = len;
 
   old_linear = linear_buffer = new wxUint16[len*2];
   ulaw_buffer = (const wxUint8 *)buffer;