Switch Controller
Loading...
Searching...
No Matches
MacroConfig.h
Go to the documentation of this file.
1
2#pragma once
3
4#include "pch.h"
5
8#include "Macro/Macro.h"
10
14
16 AudioFrameSink *audioFrameSink,
17 std::vector<std::shared_ptr<Macro>> macros) {
18 // Deciders
19 cv::Rect rectCrop(0, 0, 500, 500);
20 // TODO fix
21 auto haanitDecider = std::make_shared<ImageEvent>(
22 cv::imread("data/haanit.png"), cv::imread("data/haanit mask.png"), 3,
23 .97, rectCrop, videoFrameSink);
24 auto animalCrossingDecider =
25 std::make_shared<SoundEvent>("data/test3.wav", .5, audioFrameSink);
26
27 // TODO
28 // Macros
29 // clang-format off
30 // auto macro1Event = make_shared<SfKeyboardEvent>(sf::Keyboard::B);
31 // auto macro1 =
32 // make_shared<Macro>("data/test6.txt", macro1Event, animalCrossingDecider,
33 // Macro::inputPriority);
34 // auto macro2 =
35 // make_shared<Macro>("data/test5.txt", make_shared<ConstantEvent>(),
36 // make_shared<DefaultDecider>(), Macro::inputPriority);
37
38 // macro1->setNextMacroLists(
39 // std::vector<std::vector<std::weak_ptr<Macro>>>{{macro1}, {macro2}});
40
41 // macros = {macro1, macro2};
42 // clang-format on
43 return {macros};
44}
MacroCollection getMacroConfig(VideoFrameSink *videoFrameSink, AudioFrameSink *audioFrameSink, std::vector< std::shared_ptr< Macro > > macros)
Definition: MacroConfig.h:15
Definition: AudioFrameSink.h:14
Definition: MacroCollection.h:7
Definition: VideoFrameSink.h:17