File tree Expand file tree Collapse file tree
packages/react-native-audio-api/common/cpp/audioapi/core/sources Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,23 +41,23 @@ void AudioScheduledSourceNode::stop(double when) {
4141 stopTime_ = when;
4242}
4343
44- bool AudioScheduledSourceNode::isUnscheduled () {
44+ bool AudioScheduledSourceNode::isUnscheduled () const {
4545 return playbackState_ == PlaybackState::UNSCHEDULED;
4646}
4747
48- bool AudioScheduledSourceNode::isScheduled () {
48+ bool AudioScheduledSourceNode::isScheduled () const {
4949 return playbackState_ == PlaybackState::SCHEDULED;
5050}
5151
52- bool AudioScheduledSourceNode::isPlaying () {
52+ bool AudioScheduledSourceNode::isPlaying () const {
5353 return playbackState_ == PlaybackState::PLAYING;
5454}
5555
56- bool AudioScheduledSourceNode::isFinished () {
56+ bool AudioScheduledSourceNode::isFinished () const {
5757 return playbackState_ == PlaybackState::FINISHED;
5858}
5959
60- bool AudioScheduledSourceNode::isStopScheduled () {
60+ bool AudioScheduledSourceNode::isStopScheduled () const {
6161 return playbackState_ == PlaybackState::STOP_SCHEDULED;
6262}
6363
Original file line number Diff line number Diff line change @@ -27,19 +27,19 @@ class AudioScheduledSourceNode : public AudioNode {
2727 virtual void stop (double when);
2828
2929 // / @note Audio Thread only
30- bool isUnscheduled ();
30+ bool isUnscheduled () const ;
3131
3232 // / @note Audio Thread only
33- bool isScheduled ();
33+ bool isScheduled () const ;
3434
3535 // / @note Audio Thread only
36- bool isPlaying ();
36+ bool isPlaying () const ;
3737
3838 // / @note Audio Thread only
39- bool isFinished ();
39+ bool isFinished () const ;
4040
4141 // / @note Audio Thread only
42- bool isStopScheduled ();
42+ bool isStopScheduled () const ;
4343
4444 // / @note Audio Thread only
4545 void setOnEndedCallbackId (uint64_t callbackId);
You can’t perform that action at this time.
0 commit comments