Skip to content
This repository was archived by the owner on Sep 23, 2024. It is now read-only.

Commit 3fcc797

Browse files
Fixed PluginProcessor initContext method
1 parent d197aa8 commit 3fcc797

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

PluginProcessor.h

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* \author WuChang
66
* \email 31423836@qq.com
77
* \date July 2023
8-
* \version 1.0.0
8+
* \version 1.0.1
99
* \license MIT License
1010
*********************************************************************/
1111

@@ -33,6 +33,9 @@ namespace DMDA {
3333
* // ...
3434
* };
3535
* @endcode
36+
*
37+
* And you should call initContext() method in your construct function to
38+
* create the context.
3639
*/
3740
class PluginProcessor : public juce::AudioProcessor {
3841
public:
@@ -62,15 +65,16 @@ namespace DMDA {
6265
*/
6366
virtual Context* createContext() const;
6467

65-
private:
66-
std::unique_ptr<Context> context = nullptr;
67-
std::unique_ptr<Vst3Extensions> vst3Extensions = nullptr;
68-
6968
/**
70-
* For internal use.
69+
* Use this to init DMDA Context. You should call this in your
70+
* construct function.
7171
*/
7272
void initContext();
7373

74+
private:
75+
std::unique_ptr<Context> context = nullptr;
76+
std::unique_ptr<Vst3Extensions> vst3Extensions = nullptr;
77+
7478
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(PluginProcessor)
7579
};
7680
}

0 commit comments

Comments
 (0)