Fork of Tangara with customizations
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
tangara-fw/src/audio/include/audio_task.hpp

24 lines
518 B

#pragma once
#include <memory>
#include <string>
#include <optional>
#include "audio_element.hpp"
#include "audio_element_handle.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)
-> std::unique_ptr<AudioElementHandle>;
void AudioTaskMain(void* args);
} // namespace audio