Removed some extraneous whitespace.

Changed YES/NO to true/false; do not confuse BOOL (Objective-C) with bool (C++).
Changed some of the indentation to match that the rest of wxCocoa.

There was an if (isLastSoundInScope = NO) which I think was wrong not only
because it used NO rather than false but also because it's an assignment
rather than a test.  Changed it to if (!isLastSoundInScope).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29972 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott
2004-10-18 21:41:34 +00:00
parent c5b3143a47
commit 4fca6ee1a6
2 changed files with 39 additions and 34 deletions

View File

@@ -24,21 +24,21 @@
class WXDLLEXPORT wxSound : public wxSoundBase
{
public:
wxSound();
wxSound(const wxString& fileName, bool isResource = FALSE);
wxSound(int size, const wxByte* data);
~wxSound();
wxSound();
wxSound(const wxString& fileName, bool isResource = false);
wxSound(int size, const wxByte* data);
~wxSound();
public:
bool Create(const wxString& fileName, bool isResource = FALSE);
bool IsOk() const { return m_hSnd != NULL; }
static void Stop();
static bool IsPlaying();
bool Create(const wxString& fileName, bool isResource = false);
bool IsOk() const { return m_hSnd != NULL; }
static void Stop();
static bool IsPlaying();
inline WX_NSSound GetNSSound()
{ return m_hSnd; }
inline WX_NSSound GetNSSound()
{ return m_hSnd; }
protected:
bool DoPlay(unsigned flags) const;
bool DoPlay(unsigned flags) const;
private:
WX_NSSound m_hSnd; //NSSound handle