We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f311ce2 commit 6ced28cCopy full SHA for 6ced28c
include/scratchcpp/sound.h
@@ -37,7 +37,7 @@ class LIBSCRATCHCPP_EXPORT Sound : public Asset
37
virtual void start();
38
virtual void stop();
39
40
- virtual bool isPlaying();
+ virtual bool isPlaying() const;
41
42
Target *target() const;
43
void setTarget(Target *target);
src/scratch/sound.cpp
@@ -88,7 +88,7 @@ void Sound::stop()
88
}
89
90
/*! Returns true if the sound is being played. */
91
-bool Sound::isPlaying()
+bool Sound::isPlaying() const
92
{
93
return impl->player->isPlaying();
94
0 commit comments