]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxMMedia2/lib/sndwin.h
Fixed a bug so the toggle flag is set correctly
[wxWidgets.git] / utils / wxMMedia2 / lib / sndwin.h
index 8d9a89bbdecfb4ab34d6b5beeae37f4b3dc6931a..7911f0e33a971adf17288e092ee2974cba66d797 100644 (file)
@@ -19,8 +19,8 @@ class WXDLLEXPORT wxSoundStreamWin : public wxSoundStream {
   wxSoundStreamWin();
   ~wxSoundStreamWin();
 
-  wxSoundStream& Write(const void *buffer, size_t len);
-  wxSoundStream& Read(void *buffer, size_t len); 
+  wxSoundStream& Write(const void *buffer, wxUint32 len);
+  wxSoundStream& Read(void *buffer, wxUint32 len); 
 
   bool SetSoundFormat(wxSoundFormatBase& base);
   void SetDuplexMode(bool on) {}
@@ -31,7 +31,9 @@ class WXDLLEXPORT wxSoundStreamWin : public wxSoundStream {
   bool QueueFilled() const;
 
   // Internal but defined as public
-  void NotifyDoneBuffer(wxUint32 dev_handle);
+  void NotifyDoneBuffer(wxUint32 dev_handle, int flag);
+
+  wxUint32 GetBestSize() const { return 4096; }
 
  protected:
   wxSoundInternal *m_internal;
@@ -39,7 +41,7 @@ class WXDLLEXPORT wxSoundStreamWin : public wxSoundStream {
   wxUint32 m_input_frag_in, m_output_frag_out;
   wxSoundInfoHeader **m_headers_play, **m_headers_rec;
 
-  bool m_production_started, m_queue_filled;
+  bool m_production_started, m_queue_filled, m_waiting_for;
 
  protected:
   void CreateSndWindow();