X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f85d2074fb7623087b04b1921b91942ff4943958..7344108e8a129a3f9b4df5ab0f98a1713db03b89:/interface/wx/sound.h diff --git a/interface/wx/sound.h b/interface/wx/sound.h index 36502095e2..7fa63ded52 100644 --- a/interface/wx/sound.h +++ b/interface/wx/sound.h @@ -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.