kopia lustrzana https://github.com/jameshball/osci-render
Clean up some of the orders things are initialised in
rodzic
51b788a367
commit
8deba8dc7c
|
@ -73,6 +73,15 @@ private:
|
||||||
SvgButton popOutButton{ "popOut", BinaryData::open_in_new_svg, juce::Colours::white, juce::Colours::white };
|
SvgButton popOutButton{ "popOut", BinaryData::open_in_new_svg, juce::Colours::white, juce::Colours::white };
|
||||||
SvgButton settingsButton{ "settings", BinaryData::cog_svg, juce::Colours::white, juce::Colours::white };
|
SvgButton settingsButton{ "settings", BinaryData::cog_svg, juce::Colours::white, juce::Colours::white };
|
||||||
|
|
||||||
|
std::vector<float> tempBuffer;
|
||||||
|
int precision = 4;
|
||||||
|
|
||||||
|
std::shared_ptr<BufferConsumer> consumer;
|
||||||
|
|
||||||
|
std::function<void(FullScreenMode)> fullScreenCallback;
|
||||||
|
VisualiserSettings settings = VisualiserSettings(audioProcessor, *this);
|
||||||
|
SettingsWindow settingsWindow = SettingsWindow("Visualiser Settings");
|
||||||
|
|
||||||
juce::WebBrowserComponent::ResourceProvider provider = [this](const juce::String& path) {
|
juce::WebBrowserComponent::ResourceProvider provider = [this](const juce::String& path) {
|
||||||
juce::String mimeType;
|
juce::String mimeType;
|
||||||
if (path.endsWith("audio")) {
|
if (path.endsWith("audio")) {
|
||||||
|
@ -138,21 +147,8 @@ private:
|
||||||
.withNativeFunction("sampleRate", [this](auto& var, auto complete) {
|
.withNativeFunction("sampleRate", [this](auto& var, auto complete) {
|
||||||
complete(sampleRate);
|
complete(sampleRate);
|
||||||
})
|
})
|
||||||
.withNativeFunction("killed", [this](auto& var, auto complete) {
|
|
||||||
browserKilled = true;
|
|
||||||
})
|
|
||||||
);
|
);
|
||||||
|
|
||||||
bool browserKilled = false;
|
|
||||||
std::vector<float> tempBuffer;
|
|
||||||
int precision = 4;
|
|
||||||
|
|
||||||
std::shared_ptr<BufferConsumer> consumer;
|
|
||||||
|
|
||||||
std::function<void(FullScreenMode)> fullScreenCallback;
|
|
||||||
VisualiserSettings settings = VisualiserSettings(audioProcessor, *this);
|
|
||||||
SettingsWindow settingsWindow = SettingsWindow("Visualiser Settings");
|
|
||||||
|
|
||||||
void resetBuffer();
|
void resetBuffer();
|
||||||
void popoutWindow();
|
void popoutWindow();
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue