Skip to content

Commit 6e9513b

Browse files
committed
Refactor Engine class and update application name and folder paths in Settings
1 parent f4d54d0 commit 6e9513b

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

src/engine.hpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@
22
// SPDX-License-Identifier: GPL-3.0-or-later
33
#pragma once
44

5+
#include <juce_audio_utils/juce_audio_utils.h>
6+
57
namespace vmc {
68

7-
class Engine final : public AudioIODeviceCallback,
8-
public MidiInputCallback {
9+
class Engine final {
910
public:
1011
Engine() = default;
1112
~Engine() = default;
1213

14+
private:
15+
juce::AudioProcessorPlayer _player;
1316
Engine (const Engine&) = delete;
1417
Engine& operator= (const Engine&) = delete;
1518
Engine (Engine&&) = delete;

src/settings.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@ class Settings : public ApplicationProperties {
1717
Settings()
1818
{
1919
PropertiesFile::Options opts;
20-
opts.applicationName = "VirtualMidiController";
20+
opts.applicationName = "virtual-midi-controller";
2121
opts.filenameSuffix = "conf";
2222
opts.osxLibrarySubFolder = "Application Support";
2323
opts.storageFormat = PropertiesFile::storeAsCompressedBinary;
2424

2525
#if JUCE_DEBUG
26-
opts.applicationName << "Debug";
26+
opts.applicationName << "_debug";
2727
opts.storageFormat = PropertiesFile::storeAsXML;
2828
#endif
2929

3030
#if JUCE_LINUX
31-
opts.folderName = ".config/Kushview/VirtualMidiController";
31+
opts.folderName = ".config/kushview/virtual-midi-controller";
3232
#else
33-
opts.folderName = "Kushview/VirtualMidiController";
33+
opts.folderName = "Kushview/Virtual MIDI Controller";
3434
#endif
3535

3636
setStorageParameters (opts);

0 commit comments

Comments
 (0)