]> git.saurik.com Git - wxWidgets.git/blobdiff - interface/sound.h
no need to export private list/arrays of generic controls' implementations
[wxWidgets.git] / interface / sound.h
index 1a247877f1cded5c48f72a610f719b02aca9c004..34d910ee97300bf50bf2583621f278c66e42f064 100644 (file)
@@ -1,6 +1,6 @@
 /////////////////////////////////////////////////////////////////////////////
 // Name:        sound.h
 /////////////////////////////////////////////////////////////////////////////
 // Name:        sound.h
-// Purpose:     documentation for wxSound class
+// Purpose:     interface of wxSound
 // Author:      wxWidgets team
 // RCS-ID:      $Id$
 // Licence:     wxWindows license
 // Author:      wxWidgets team
 // RCS-ID:      $Id$
 // Licence:     wxWindows license
@@ -27,7 +27,7 @@ public:
         Constructs a wave object from a file or, under Windows, from a Windows
         resource. Call IsOk() to determine whether this
         succeeded.
         Constructs a wave object from a file or, under Windows, from a Windows
         resource. Call IsOk() to determine whether this
         succeeded.
-        
+
         @param fileName
             The filename or Windows resource.
         @param isResource
         @param fileName
             The filename or Windows resource.
         @param isResource
@@ -44,12 +44,12 @@ public:
 
     /**
         Constructs a wave object from a file or resource.
 
     /**
         Constructs a wave object from a file or resource.
-        
+
         @param fileName
             The filename or Windows resource.
         @param isResource
             @true if fileName is a resource, @false if it is a filename.
         @param fileName
             The filename or Windows resource.
         @param isResource
             @true if fileName is a resource, @false if it is a filename.
-        
+
         @returns @true if the call was successful, @false otherwise.
     */
     bool Create(const wxString& fileName, bool isResource = false);
         @returns @true if the call was successful, @false otherwise.
     */
     bool Create(const wxString& fileName, bool isResource = false);
@@ -58,13 +58,13 @@ public:
         Returns @true if the object contains a successfully loaded file or resource,
         @false otherwise.
     */
         Returns @true if the object contains a successfully loaded file or resource,
         @false otherwise.
     */
-    bool IsOk();
+    bool IsOk() const;
 
     /**
         Returns @true if a sound is played at the moment.
         This method is currently not implemented under Windows.
     */
 
     /**
         Returns @true if a sound is played at the moment.
         This method is currently not implemented under Windows.
     */
-    static bool IsPlaying();
+    static bool IsPlaying() const;
 
     //@{
     /**
 
     //@{
     /**
@@ -75,28 +75,28 @@ public:
         calling this function and the sound would continue playing, however this
         currently doesn't work under Windows for sound objects loaded from memory data.
         The possible values for @a flags are:
         calling this function and the sound would continue playing, however this
         currently doesn't work under Windows for sound objects loaded from memory data.
         The possible values for @a flags are:
-        
+
         wxSOUND_SYNC
         wxSOUND_SYNC
-        
+
         @c Play will block and wait until the sound is
         replayed.
         @c Play will block and wait until the sound is
         replayed.
-        
+
         wxSOUND_ASYNC
         wxSOUND_ASYNC
-        
+
         Sound is played asynchronously,
         @c Play returns immediately
         Sound is played asynchronously,
         @c Play returns immediately
-        
+
         wxSOUND_ASYNC | wxSOUND_LOOP
         wxSOUND_ASYNC | wxSOUND_LOOP
-        
+
         Sound is played asynchronously
         and loops until another sound is played,
         Stop() is called or the program terminates.
         Sound is played asynchronously
         and loops until another sound is played,
         Stop() is called or the program terminates.
-        
+
         The static form is shorthand for this code:
     */
     bool Play(unsigned flags = wxSOUND_ASYNC);
         The static form is shorthand for this code:
     */
     bool Play(unsigned flags = wxSOUND_ASYNC);
-    static bool Play(const wxString& filename,
-                     unsigned flags = wxSOUND_ASYNC);
+    const static bool Play(const wxString& filename,
+                           unsigned flags = wxSOUND_ASYNC);
     //@}
 
     /**
     //@}
 
     /**
@@ -104,3 +104,4 @@ public:
     */
     static void Stop();
 };
     */
     static void Stop();
 };
+