]> git.saurik.com Git - wxWidgets.git/blobdiff - interface/wx/sound.h
Fix text origin and bounding box computations in wxSVGFileDC.
[wxWidgets.git] / interface / wx / sound.h
index 36502095e2000ce94ab8ccd7bb1b5a3156277a20..7fa63ded522800298319122cc730713b7e76f144 100644 (file)
@@ -6,6 +6,12 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
+
+#define wxSOUND_SYNC  0
+#define wxSOUND_ASYNC 1
+#define wxSOUND_LOOP  2
+
+
 /**
     @class wxSound
 
@@ -64,6 +70,16 @@ public:
     */
     bool Create(const wxString& fileName, bool isResource = false);
 
+    /**
+        Constructs a wave object from in-memory data.
+
+        @param size
+            Size of the buffer pointer to by @a data.
+        @param data
+            The buffer containing the sound data in WAV format.
+     */
+    bool Create(size_t size, const void* data);
+
     /**
         Returns @true if the object contains a successfully loaded file or resource,
         @false otherwise.