Skip to content

Commit

Permalink
AudioSDPlayer_F32: rename listFiles to sendFilenames
Browse files Browse the repository at this point in the history
  • Loading branch information
chipaudette committed Oct 15, 2024
1 parent 77b5ed2 commit 9b8ff7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/AudioSDPlayer_F32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ void AudioSDPlayer_F32::begin(void)
update_counter = 0;
}

bool AudioSDPlayer_F32::listFiles(void) {
bool AudioSDPlayer_F32::sendFilenames(void) {
if (state == STATE_NOT_BEGUN) begin();
return sd_ptr->ls(); //add LS_R to make recursive. otherwise, just does the local directory
}
Expand Down
3 changes: 1 addition & 2 deletions src/AudioSDPlayer_F32.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class AudioSDPlayer_F32 : public AudioStream_F32
return false;
}
virtual void setSdPtr(SdFs *ptr) { sd_ptr = ptr; }
virtual bool listFiles(void);
virtual bool sendFilenames(void);

virtual int serviceSD(void);

Expand All @@ -113,7 +113,6 @@ class AudioSDPlayer_F32 : public AudioStream_F32
// high priority interrupt-driven part of your code (ie, update()).
// Instead only call it from the low priority main-loop-driven part of
// your code.

uint32_t readRawBytes(uint8_t *out_buffer, const uint32_t n_bytes_to_read);

protected:
Expand Down

0 comments on commit 9b8ff7b

Please sign in to comment.