X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6c5e63761c870ea4918a3fe049f99fce6707b938..0185cd097844887c308a81fbd137676086ae8580:/utils/wxMMedia2/lib/sndulaw.cpp diff --git a/utils/wxMMedia2/lib/sndulaw.cpp b/utils/wxMMedia2/lib/sndulaw.cpp index 3142d173c5..5fb3153f9c 100644 --- a/utils/wxMMedia2/lib/sndulaw.cpp +++ b/utils/wxMMedia2/lib/sndulaw.cpp @@ -82,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; @@ -109,6 +109,11 @@ wxSoundStream& wxSoundStreamUlaw::Write(const void *buffer, size_t len) return *m_router; } +wxUint32 wxSoundStreamUlaw::GetBestSize() const +{ + return m_sndio->GetBestSize() / 2; +} + bool wxSoundStreamUlaw::SetSoundFormat(const wxSoundFormatBase& format) { if (format.GetType() != wxSOUND_ULAW) {