Skip to content

Commit 4da251f

Browse files
committed
CRLF
1 parent e9759d1 commit 4da251f

File tree

250 files changed

+19229
-19229
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

250 files changed

+19229
-19229
lines changed
Lines changed: 79 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,79 @@
1-
/* Audio Pipeline Options
2-
*
3-
* From: https://github.com/PokemonAutomation/
4-
*
5-
*/
6-
7-
#ifndef PokemonAutomation_AudioPipeline_AudioPipelineOptions_H
8-
#define PokemonAutomation_AudioPipeline_AudioPipelineOptions_H
9-
10-
#include "Common/Cpp/Options/GroupOption.h"
11-
#include "Common/Cpp/Options/BooleanCheckBoxOption.h"
12-
#include "Common/Cpp/Options/SimpleIntegerOption.h"
13-
#include "Common/Cpp/Options/FloatingPointOption.h"
14-
#include "CommonFramework/GlobalSettingsPanel.h"
15-
16-
namespace PokemonAutomation{
17-
18-
19-
class AudioPipelineOptions : public GroupOption{
20-
public:
21-
AudioPipelineOptions()
22-
: GroupOption(
23-
"Audio Pipeline",
24-
LockMode::LOCK_WHILE_RUNNING,
25-
GroupOption::EnableMode::ALWAYS_ENABLED, true
26-
)
27-
, FILE_VOLUME_SCALE(
28-
"<b>Audio File Input Volume Scale:</b><br>"
29-
"Multiply audio file playback by this factor. (This is linear scale. So each factor of 10 is 20dB.)",
30-
LockMode::UNLOCK_WHILE_RUNNING,
31-
0.31622776601683793320, // -10dB
32-
-10000, 10000
33-
)
34-
, DEVICE_VOLUME_SCALE(
35-
"<b>Audio Device Input Volume Scale:</b><br>"
36-
"Multiply audio device input by this factor. (This is linear scale. So each factor of 10 is 20dB.)",
37-
LockMode::UNLOCK_WHILE_RUNNING,
38-
1.0, -10000, 10000
39-
)
40-
, SHOW_ALL_DEVICES(
41-
"<b>Show all Audio Devices:</b><br>"
42-
"Show all audio devices - including duplicates.",
43-
LockMode::UNLOCK_WHILE_RUNNING,
44-
false
45-
)
46-
, SHOW_RECORD_FREQUENCIES(
47-
"<b>Show Record Frequencies:</b><br>"
48-
"Show option to record audio frequencies.",
49-
LockMode::UNLOCK_WHILE_RUNNING,
50-
false
51-
)
52-
, AUTO_RESET_SECONDS(
53-
"<b>Audio Auto-Reset:</b><br>"
54-
"Attempt to reset the audio if this many seconds has elapsed since the last audio frame (in order to fix issues with RDP disconnection, etc).",
55-
LockMode::UNLOCK_WHILE_RUNNING,
56-
5
57-
)
58-
{
59-
PA_ADD_OPTION(FILE_VOLUME_SCALE);
60-
PA_ADD_OPTION(DEVICE_VOLUME_SCALE);
61-
PA_ADD_OPTION(SHOW_ALL_DEVICES);
62-
if (PreloadSettings::instance().DEVELOPER_MODE){
63-
PA_ADD_OPTION(SHOW_RECORD_FREQUENCIES);
64-
}
65-
PA_ADD_OPTION(AUTO_RESET_SECONDS);
66-
}
67-
68-
public:
69-
FloatingPointOption FILE_VOLUME_SCALE;
70-
FloatingPointOption DEVICE_VOLUME_SCALE;
71-
BooleanCheckBoxOption SHOW_ALL_DEVICES;
72-
BooleanCheckBoxOption SHOW_RECORD_FREQUENCIES;
73-
SimpleIntegerOption<uint8_t> AUTO_RESET_SECONDS;
74-
};
75-
76-
77-
78-
}
79-
#endif
1+
/* Audio Pipeline Options
2+
*
3+
* From: https://github.com/PokemonAutomation/
4+
*
5+
*/
6+
7+
#ifndef PokemonAutomation_AudioPipeline_AudioPipelineOptions_H
8+
#define PokemonAutomation_AudioPipeline_AudioPipelineOptions_H
9+
10+
#include "Common/Cpp/Options/GroupOption.h"
11+
#include "Common/Cpp/Options/BooleanCheckBoxOption.h"
12+
#include "Common/Cpp/Options/SimpleIntegerOption.h"
13+
#include "Common/Cpp/Options/FloatingPointOption.h"
14+
#include "CommonFramework/GlobalSettingsPanel.h"
15+
16+
namespace PokemonAutomation{
17+
18+
19+
class AudioPipelineOptions : public GroupOption{
20+
public:
21+
AudioPipelineOptions()
22+
: GroupOption(
23+
"Audio Pipeline",
24+
LockMode::LOCK_WHILE_RUNNING,
25+
GroupOption::EnableMode::ALWAYS_ENABLED, true
26+
)
27+
, FILE_VOLUME_SCALE(
28+
"<b>Audio File Input Volume Scale:</b><br>"
29+
"Multiply audio file playback by this factor. (This is linear scale. So each factor of 10 is 20dB.)",
30+
LockMode::UNLOCK_WHILE_RUNNING,
31+
0.31622776601683793320, // -10dB
32+
-10000, 10000
33+
)
34+
, DEVICE_VOLUME_SCALE(
35+
"<b>Audio Device Input Volume Scale:</b><br>"
36+
"Multiply audio device input by this factor. (This is linear scale. So each factor of 10 is 20dB.)",
37+
LockMode::UNLOCK_WHILE_RUNNING,
38+
1.0, -10000, 10000
39+
)
40+
, SHOW_ALL_DEVICES(
41+
"<b>Show all Audio Devices:</b><br>"
42+
"Show all audio devices - including duplicates.",
43+
LockMode::UNLOCK_WHILE_RUNNING,
44+
false
45+
)
46+
, SHOW_RECORD_FREQUENCIES(
47+
"<b>Show Record Frequencies:</b><br>"
48+
"Show option to record audio frequencies.",
49+
LockMode::UNLOCK_WHILE_RUNNING,
50+
false
51+
)
52+
, AUTO_RESET_SECONDS(
53+
"<b>Audio Auto-Reset:</b><br>"
54+
"Attempt to reset the audio if this many seconds has elapsed since the last audio frame (in order to fix issues with RDP disconnection, etc).",
55+
LockMode::UNLOCK_WHILE_RUNNING,
56+
5
57+
)
58+
{
59+
PA_ADD_OPTION(FILE_VOLUME_SCALE);
60+
PA_ADD_OPTION(DEVICE_VOLUME_SCALE);
61+
PA_ADD_OPTION(SHOW_ALL_DEVICES);
62+
if (PreloadSettings::instance().DEVELOPER_MODE){
63+
PA_ADD_OPTION(SHOW_RECORD_FREQUENCIES);
64+
}
65+
PA_ADD_OPTION(AUTO_RESET_SECONDS);
66+
}
67+
68+
public:
69+
FloatingPointOption FILE_VOLUME_SCALE;
70+
FloatingPointOption DEVICE_VOLUME_SCALE;
71+
BooleanCheckBoxOption SHOW_ALL_DEVICES;
72+
BooleanCheckBoxOption SHOW_RECORD_FREQUENCIES;
73+
SimpleIntegerOption<uint8_t> AUTO_RESET_SECONDS;
74+
};
75+
76+
77+
78+
}
79+
#endif

0 commit comments

Comments
 (0)