-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSharedGlobals.cpp
More file actions
24 lines (20 loc) · 915 Bytes
/
SharedGlobals.cpp
File metadata and controls
24 lines (20 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include "SharedGlobals.h"
// Define the global variables
moodycamel::ReaderWriterQueue<float> queueL(8192);
moodycamel::ReaderWriterQueue<float> queueR(8192);
double lastObservedSampleRate = 48000;
// Define the makeIcon function
std::unique_ptr<juce::Drawable> makeIcon(const char *iconString)
{
auto parsedIconString{XmlDocument::parse(String(iconString))};
jassert(parsedIconString != nullptr);
auto drawableLogoString = Drawable::createFromSVG(*parsedIconString);
jassert(drawableLogoString != nullptr);
return drawableLogoString;
}
const juce::Identifier SettingsKeys::recordingsLocation = "recordingsLocation";
const juce::Identifier SettingsKeys::theme = "theme";
const juce::Identifier SettingsKeys::zoom = "zoom";
const juce::Identifier SettingsKeys::duration = "duration";
const juce::Identifier SettingsKeys::format = "format";
const juce::Identifier SettingsKeys::sampleRate = "sampleRate";