]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxMMedia2/lib/sndwav.h
Fixed a bug so the toggle flag is set correctly
[wxWidgets.git] / utils / wxMMedia2 / lib / sndwav.h
index 32b66737e0dc622e7d242b3a99b9582f077f0622..7d4e380fe2a167e9f9bf7069f7a6f6b796bd1c0c 100644 (file)
@@ -12,7 +12,9 @@
 #pragma interface "sndwav.h"
 #endif
 
 #pragma interface "sndwav.h"
 #endif
 
+#include <wx/defs.h>
 #include <wx/stream.h>
 #include <wx/stream.h>
+#include <wx/datstrm.h>
 #include "sndbase.h"
 #include "sndcodec.h"
 #include "sndfile.h"
 #include "sndbase.h"
 #include "sndcodec.h"
 #include "sndfile.h"
@@ -34,8 +36,17 @@ class wxSoundWave: public wxSoundFileStream {
   bool PrepareToRecord(unsigned long time);
   bool FinishRecording();
 
   bool PrepareToRecord(unsigned long time);
   bool FinishRecording();
 
-  size_t GetData(void *buffer, size_t len);
-  size_t PutData(const void *buffer, size_t len);
+  wxUint32 GetData(void *buffer, wxUint32 len);
+  wxUint32 PutData(const void *buffer, wxUint32 len);
+
+  bool HandleOutputPCM(wxDataInputStream& data, wxUint16 channels,
+                 wxUint32 sample_fq, wxUint32 byte_p_sec,
+                 wxUint16 byte_p_spl, wxUint16 bits_p_spl);
+  bool HandleOutputG721(wxDataInputStream& data, wxUint16 channels,
+                  wxUint32 sample_fq, wxUint32 byte_p_sec,
+                  wxUint16 byte_p_spl, wxUint16 bits_p_spl);
+  wxSoundFormatBase *HandleInputPCM(wxDataOutputStream& data);
+  wxSoundFormatBase *HandleInputG72X(wxDataOutputStream& data);
 };
 
 #endif
 };
 
 #endif