summaryrefslogtreecommitdiff
path: root/src/audio/include/audio_task.hpp
blob: df70ebaa3156355f3c156c46f3455f2a4f179d02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once

#include <memory>
#include <optional>
#include <string>

#include "audio_element.hpp"
#include "freertos/portmacro.h"

namespace audio {

struct AudioTaskArgs {
  std::shared_ptr<IAudioElement>& element;
};

auto StartAudioTask(const std::string& name,
                    std::optional<BaseType_t> core_id,
                    std::shared_ptr<IAudioElement> element) -> void;

void AudioTaskMain(void* args);

}  // namespace audio