function name clang fixes

This commit is contained in:
Kevin Ahrendt 2024-10-24 21:07:10 +00:00
parent 8a6427ef7e
commit 7d35a2a185
2 changed files with 9 additions and 9 deletions

View file

@ -137,17 +137,17 @@ esp_err_t AudioPipeline::common_start_(uint32_t target_sample_rate, const std::s
if (this->read_task_handle_ == nullptr) {
this->read_task_handle_ =
xTaskCreateStatic(AudioPipeline::read_task_, (task_name + "_read").c_str(), READER_TASK_STACK_SIZE,
xTaskCreateStatic(AudioPipeline::read_task, (task_name + "_read").c_str(), READER_TASK_STACK_SIZE,
(void *) this, priority, this->read_task_stack_buffer_, &this->read_task_stack_);
}
if (this->decode_task_handle_ == nullptr) {
this->decode_task_handle_ =
xTaskCreateStatic(AudioPipeline::decode_task_, (task_name + "_decode").c_str(), DECODER_TASK_STACK_SIZE,
xTaskCreateStatic(AudioPipeline::decode_task, (task_name + "_decode").c_str(), DECODER_TASK_STACK_SIZE,
(void *) this, priority, this->decode_task_stack_buffer_, &this->decode_task_stack_);
}
if (this->resample_task_handle_ == nullptr) {
this->resample_task_handle_ =
xTaskCreateStatic(AudioPipeline::resample_task_, (task_name + "_resample").c_str(), RESAMPLER_TASK_STACK_SIZE,
xTaskCreateStatic(AudioPipeline::resample_task, (task_name + "_resample").c_str(), RESAMPLER_TASK_STACK_SIZE,
(void *) this, priority, this->resample_task_stack_buffer_, &this->resample_task_stack_);
}
@ -314,7 +314,7 @@ void AudioPipeline::resume_tasks() {
}
}
void AudioPipeline::read_task_(void *params) {
void AudioPipeline::read_task(void *params) {
AudioPipeline *this_pipeline = (AudioPipeline *) params;
while (true) {
@ -380,7 +380,7 @@ void AudioPipeline::read_task_(void *params) {
}
}
void AudioPipeline::decode_task_(void *params) {
void AudioPipeline::decode_task(void *params) {
AudioPipeline *this_pipeline = (AudioPipeline *) params;
while (true) {
@ -467,7 +467,7 @@ void AudioPipeline::decode_task_(void *params) {
}
}
void AudioPipeline::resample_task_(void *params) {
void AudioPipeline::resample_task(void *params) {
AudioPipeline *this_pipeline = (AudioPipeline *) params;
while (true) {

View file

@ -129,19 +129,19 @@ class AudioPipeline {
QueueHandle_t info_error_queue_{nullptr};
// Handles reading the media file from flash or a url
static void read_task_(void *params);
static void read_task(void *params);
TaskHandle_t read_task_handle_{nullptr};
StaticTask_t read_task_stack_;
StackType_t *read_task_stack_buffer_{nullptr};
// Decodes the media file into PCM audio
static void decode_task_(void *params);
static void decode_task(void *params);
TaskHandle_t decode_task_handle_{nullptr};
StaticTask_t decode_task_stack_;
StackType_t *decode_task_stack_buffer_{nullptr};
// Resamples the audio to match the specified target sample rate. Converts mono audio to stereo audio if necessary.
static void resample_task_(void *params);
static void resample_task(void *params);
TaskHandle_t resample_task_handle_{nullptr};
StaticTask_t resample_task_stack_;
StackType_t *resample_task_stack_buffer_{nullptr};