X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cad1a197e5a31d40104fd979a2c583aa8f725c93..31189345e11ad176f8088f72a78b6e49a6dd5a92:/include/wx/unix/sound.h diff --git a/include/wx/unix/sound.h b/include/wx/unix/sound.h index 2d2a349869..9e6fa7501a 100644 --- a/include/wx/unix/sound.h +++ b/include/wx/unix/sound.h @@ -16,22 +16,18 @@ #if wxUSE_SOUND -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma interface "sound.h" -#endif - #include "wx/object.h" // ---------------------------------------------------------------------------- // wxSound: simple audio playback class // ---------------------------------------------------------------------------- -class wxSoundBackend; -class wxSound; -class wxDynamicLibrary; +class WXDLLIMPEXP_ADV wxSoundBackend; +class WXDLLIMPEXP_ADV wxSound; +class WXDLLIMPEXP_BASE wxDynamicLibrary; /// Sound data, as loaded from .wav file: -class wxSoundData +class WXDLLIMPEXP_ADV wxSoundData { public: wxSoundData() : m_refCnt(1) {} @@ -59,13 +55,13 @@ private: /// Simple sound class: -class wxSound : public wxSoundBase +class WXDLLIMPEXP_ADV wxSound : public wxSoundBase { public: wxSound(); wxSound(const wxString& fileName, bool isResource = false); wxSound(int size, const wxByte* data); - ~wxSound(); + virtual ~wxSound(); // Create from resource or file bool Create(const wxString& fileName, bool isResource = false); @@ -106,10 +102,10 @@ private: // ---------------------------------------------------------------------------- // This is interface to sound playing implementation. There are multiple -// sound architectures in use on Unix platforms and wxWindows can use several +// sound architectures in use on Unix platforms and wxWidgets can use several // of them for playback, depending on their availability at runtime; hence -// the need for backends. This class is for use by wxWindows and people writing -// additional backends only, it is _not_ for use by applications! +// the need for backends. This class is for use by wxWidgets and people writing +// additional backends only, it is _not_ for use by applications! // Structure that holds playback status information struct wxSoundPlaybackStatus @@ -121,7 +117,7 @@ struct wxSoundPlaybackStatus }; // Audio backend interface -class wxSoundBackend +class WXDLLIMPEXP_ADV wxSoundBackend { public: virtual ~wxSoundBackend() {} @@ -137,7 +133,7 @@ public: virtual bool IsAvailable() const = 0; // Returns true if the backend is capable of playing sound asynchronously. - // If false, then wxWindows creates a playback thread and handles async + // If false, then wxWidgets creates a playback thread and handles async // playback, otherwise it is left up to the backend (will usually be more // effective). virtual bool HasNativeAsyncPlayback() const = 0;