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 494c127 commit a54b1bbCopy full SHA for a54b1bb
src/AudioTools/Disk/AudioSource.h
@@ -60,7 +60,10 @@ class AudioSource {
60
virtual void setTimeout(int millisec) {};
61
62
/// Returns default setting go to the next
63
- virtual bool isAutoNext() { return true; }
+ virtual bool isAutoNext() { return is_auto_next; }
64
+
65
+ // Prevent automatic move to the next stream
66
+ virtual void setAutoNext(bool flag) { is_auto_next = flag; }
67
68
/// access with array syntax
69
Stream* operator[](int idx) { return setIndex(idx); }
@@ -70,6 +73,7 @@ class AudioSource {
70
73
71
74
protected:
72
75
int timeout_auto_next_value = 500;
76
+ bool is_auto_next = true;
77
};
78
79
/**
0 commit comments