applied patch #997019: '[wxMac] updated wxSound', adds static IsPlaying() and Stop()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28557 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2,11 +2,11 @@
|
||||
// Name: sound.h
|
||||
// Purpose: wxSound class (loads and plays short Windows .wav files).
|
||||
// Optional on non-Windows platforms.
|
||||
// Author: Stefan Csomor
|
||||
// Author: Ryan Norton, Stefan Csomor
|
||||
// Modified by:
|
||||
// Created: 1998-01-01
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) Stefan Csomor
|
||||
// Copyright: (c) Ryan Norton, Stefan Csomor
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -32,12 +32,11 @@ public:
|
||||
public:
|
||||
bool Create(const wxString& fileName, bool isResource = FALSE);
|
||||
bool IsOk() const { return !m_sndname.IsEmpty(); }
|
||||
static void Stop();
|
||||
static bool IsPlaying();
|
||||
|
||||
void* GetHandle();
|
||||
protected:
|
||||
// prevent collision with some BSD definitions of macro Free()
|
||||
bool FreeData();
|
||||
|
||||
protected:
|
||||
bool DoPlay(unsigned flags) const;
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user