X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/526ddb13e289be62ee1926c265138c0dea36fa56..0185cd097844887c308a81fbd137676086ae8580:/utils/wxMMedia2/lib/sndfile.h diff --git a/utils/wxMMedia2/lib/sndfile.h b/utils/wxMMedia2/lib/sndfile.h index f08a1db83a..10e77f8610 100644 --- a/utils/wxMMedia2/lib/sndfile.h +++ b/utils/wxMMedia2/lib/sndfile.h @@ -25,14 +25,16 @@ class WXDLLEXPORT wxSoundRouterStream: public wxSoundStreamCodec { wxSoundRouterStream(wxSoundStream& sndio); ~wxSoundRouterStream(); - wxSoundStream& Read(void *buffer, size_t len); - wxSoundStream& Write(const void *buffer, size_t len); + wxSoundStream& Read(void *buffer, wxUint32 len); + wxSoundStream& Write(const void *buffer, wxUint32 len); bool SetSoundFormat(const wxSoundFormatBase& format); bool StartProduction(int evt); bool StopProduction(); + wxUint32 GetBestSize() const; + protected: wxSoundStream *m_router; }; @@ -67,14 +69,14 @@ class wxSoundFileStream: public wxSoundStream { unsigned long GetLength() const; - wxSoundStream& Read(void *buffer, size_t len); - wxSoundStream& Write(const void *buffer, size_t len); + wxSoundStream& Read(void *buffer, wxUint32 len); + wxSoundStream& Write(const void *buffer, wxUint32 len); void SetDuplexMode(bool duplex); bool SetSoundFormat(const wxSoundFormatBase& format); - virtual bool CanRead() { return TRUE; } + virtual bool CanRead() { return FALSE; } protected: wxSoundRouterStream m_codec; @@ -90,8 +92,8 @@ class wxSoundFileStream: public wxSoundStream { virtual bool PrepareToRecord(unsigned long time) = 0; virtual bool FinishRecording() = 0; - virtual size_t GetData(void *buffer, size_t len) = 0; - virtual size_t PutData(const void *buffer, size_t len) = 0; + virtual wxUint32 GetData(void *buffer, wxUint32 len) = 0; + virtual wxUint32 PutData(const void *buffer, wxUint32 len) = 0; void OnSoundEvent(int evt); };