10#define DSY_WAVPLAYER_H
15#define WAV_FILENAME_MAX \
83 BUFFER_STATE_PREPARE_0,
84 BUFFER_STATE_PREPARE_1,
87 BufferState GetNextBuffState();
89 static constexpr size_t kMaxFiles = 8;
90 static constexpr size_t kBufferSize = 4096;
91 WavFileInfo file_info_[kMaxFiles];
92 size_t file_cnt_, file_sel_;
93 BufferState buff_state_;
94 int16_t buff_[kBufferSize];
96 bool looping_, playing_;
Definition leddriver.h:33
Definition wavplayer.h:38
void Init(const char *search_path)
WavPlayer()
Definition wavplayer.h:40
void SetLooping(bool loop)
Definition wavplayer.h:68
size_t GetCurrentFile() const
Definition wavplayer.h:77
~WavPlayer()
Definition wavplayer.h:41
bool GetLooping() const
Definition wavplayer.h:71
size_t GetNumberFiles() const
Definition wavplayer.h:74
Hardware defines and helpers for daisy field platform.
Definition index.h:2
Definition wavplayer.h:23
char name[256]
Definition wavplayer.h:25
WAV_FormatTypeDef raw_data
Definition wavplayer.h:24
#define WAV_FILENAME_MAX
Definition wavplayer.h:15