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;
};
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;
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);
};