File tree Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,11 @@ class AudioSourceIdxSD : public AudioSource {
126
126
return idx[pos];
127
127
}
128
128
129
+ // / Defines whether the index should be rebuild on begin
130
+ void setCreateIndex (bool rebuild) {
131
+ setup_index = rebuild;
132
+ }
133
+
129
134
protected:
130
135
#if defined(USE_SD_NO_NS)
131
136
SDIndex<SDClass, File> idx{SD};
Original file line number Diff line number Diff line change @@ -150,6 +150,11 @@ class AudioSourceIdxSDFAT : public AudioSource {
150
150
return idx[pos];
151
151
}
152
152
153
+ // / Defines whether the index should be rebuild on begin
154
+ void setCreateIndex (bool rebuild) {
155
+ setup_index = rebuild;
156
+ }
157
+
153
158
protected:
154
159
SdSpiConfig *p_cfg = nullptr ;
155
160
AudioFs sd;
Original file line number Diff line number Diff line change @@ -110,6 +110,11 @@ class AudioSourceIdxSDMMC : public AudioSource {
110
110
return idx[pos];
111
111
}
112
112
113
+ // / Defines whether the index should be rebuild on begin
114
+ void setCreateIndex (bool rebuild) {
115
+ setup_index = rebuild;
116
+ }
117
+
113
118
protected:
114
119
SDIndex<fs::SDMMCFS,fs::File> idx{SD_MMC};
115
120
File file;
You can’t perform that action at this time.
0 commit comments