]> git.saurik.com Git - wxWidgets.git/blobdiff - interface/wx/sound.h
Added a parameter to PrintBuffer and PrintFile to allow silent or prompted printing.
[wxWidgets.git] / interface / wx / sound.h
index def7b84b550dbd7a3899b60f1b590dd883c7e38d..36502095e2000ce94ab8ccd7bb1b5a3156277a20 100644 (file)
@@ -37,6 +37,16 @@ public:
     */
     wxSound(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.
+     */
+    wxSound(size_t size, const void* data);
+
     /**
         Destroys the wxSound object.
     */
@@ -62,7 +72,12 @@ public:
 
     /**
         Returns @true if a sound is played at the moment.
-        This method is currently not implemented under Windows.
+
+        This method is currently not available under Windows and may not be
+        always implemented in Unix ports depending on the compilation options
+        used (in this case it just always returns @false).
+
+        @onlyfor{wxgtk,wxosx}
     */
     static bool IsPlaying();