X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/57bf907d8e45ced18486d74c04f41c06034b7e65..fceac6bbfe23180d460ef62dac83c591d9e0f941:/interface/wx/sound.h diff --git a/interface/wx/sound.h b/interface/wx/sound.h index b4e65d0e50..5f2c78300b 100644 --- a/interface/wx/sound.h +++ b/interface/wx/sound.h @@ -3,7 +3,7 @@ // Purpose: interface of wxSound // Author: wxWidgets team // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @@ -16,7 +16,7 @@ Open Sound System or Simple DirectMedia Layer). @library{wxadv} - @category{misc} + @category{media} */ class wxSound : public wxObject { @@ -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. */