X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0662cd3286d6da0be81ef063633fec13c5cf741b..171774fcf39d89d62bccc2e035d44f2f3a6495e7:/utils/wxMMedia2/lib/sndulaw.cpp diff --git a/utils/wxMMedia2/lib/sndulaw.cpp b/utils/wxMMedia2/lib/sndulaw.cpp index 620abb7aa1..371f68b646 100644 --- a/utils/wxMMedia2/lib/sndulaw.cpp +++ b/utils/wxMMedia2/lib/sndulaw.cpp @@ -10,6 +10,10 @@ #endif #include + +#ifndef WX_PRECOMP +#endif + #include "sndbase.h" #include "sndfile.h" #include "sndpcm.h" @@ -84,7 +88,8 @@ wxSoundStreamUlaw::~wxSoundStreamUlaw() wxSoundStream& wxSoundStreamUlaw::Read(void *buffer, wxUint32 len) { - return *this; + // TODO + return *this; } wxSoundStream& wxSoundStreamUlaw::Write(const void *buffer, wxUint32 len) @@ -109,6 +114,11 @@ wxSoundStream& wxSoundStreamUlaw::Write(const void *buffer, wxUint32 len) return *m_router; } +wxUint32 wxSoundStreamUlaw::GetBestSize() const +{ + return m_sndio->GetBestSize() / 2; +} + bool wxSoundStreamUlaw::SetSoundFormat(const wxSoundFormatBase& format) { if (format.GetType() != wxSOUND_ULAW) {