X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c559c4b3efb01eceaeeb2a2bbc279cb9367e131c..36a0190ebd5bd9a7302f60f6dcd608b80574e21c:/interface/wx/sound.h diff --git a/interface/wx/sound.h b/interface/wx/sound.h index 5f2c78300b..0fdcb9d9d1 100644 --- a/interface/wx/sound.h +++ b/interface/wx/sound.h @@ -2,10 +2,15 @@ // Name: sound.h // Purpose: interface of wxSound // Author: wxWidgets team -// RCS-ID: $Id$ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// + +#define wxSOUND_SYNC 0 +#define wxSOUND_ASYNC 1 +#define wxSOUND_LOOP 2 + + /** @class wxSound @@ -64,6 +69,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. @@ -72,7 +87,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();