Files
tftest/include/wav_list.h
DESKTOP-PUHFO60\dsx2016 b44bd7d3f0 Snapshot Beep + WAV UI before Pomodoro rewrite.
Keep LEDC tones, TF WAV playback, and compact list layout as a tagged baseline.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-18 18:51:05 +08:00

24 lines
492 B
C

#pragma once
#include <Arduino.h>
#include <stddef.h>
#include <stdint.h>
static constexpr size_t WAV_MAX = 24;
static constexpr size_t WAV_PATH_MAX = 64;
static constexpr size_t WAV_NAME_MAX = 28;
struct WavTrack {
char path[WAV_PATH_MAX];
char name[WAV_NAME_MAX];
uint32_t bytes;
};
uint8_t wav_list_count();
int8_t wav_list_selected();
void wav_list_set_selected(int8_t idx);
const WavTrack *wav_list_get(uint8_t idx);
const char *wav_list_current_path();
bool wav_list_scan();