From 9b8ff7b4aa2d43a5a975a85966623ecdaa641956 Mon Sep 17 00:00:00 2001 From: Chip Audette Date: Tue, 15 Oct 2024 12:45:37 -0400 Subject: [PATCH] AudioSDPlayer_F32: rename listFiles to sendFilenames --- src/AudioSDPlayer_F32.cpp | 2 +- src/AudioSDPlayer_F32.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/AudioSDPlayer_F32.cpp b/src/AudioSDPlayer_F32.cpp index bbd7221..44e4224 100644 --- a/src/AudioSDPlayer_F32.cpp +++ b/src/AudioSDPlayer_F32.cpp @@ -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 } diff --git a/src/AudioSDPlayer_F32.h b/src/AudioSDPlayer_F32.h index 87bd47f..bd7ceb6 100644 --- a/src/AudioSDPlayer_F32.h +++ b/src/AudioSDPlayer_F32.h @@ -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); @@ -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: