Skip to content

Commit 6b8749f

Browse files
committed
AudioSourceSDFAT provide getAudioFs() method
1 parent a65d380 commit 6b8749f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/AudioTools/AudioLibs/AudioSourceSDFAT.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,11 @@ class AudioSourceSDFAT : public AudioSource {
141141
/// very slow if you have a lot of files in many subdirectories
142142
long size() { return idx.size(); }
143143

144+
/// provides access to the AudioFs object
145+
AudioFs& getAudioFs() {
146+
return sd;
147+
}
148+
144149
protected:
145150
SdSpiConfig *p_cfg = nullptr;
146151
AudioFs sd;

0 commit comments

Comments
 (0)