Skip to content

Commit 7d2d876

Browse files
refactor: nitpicks
1 parent 8efcef4 commit 7d2d876

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

packages/react-native-audio-api/common/cpp/audioapi/core/sources/AudioScheduledSourceNode.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

packages/react-native-audio-api/common/cpp/audioapi/core/sources/AudioScheduledSourceNode.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)