27
27
// using namespace lv2c::lv2_plugin;
28
28
29
29
30
- static REGISTRATION_DECLARATION PluginRegistration<RecordPlugin > registration (RecordPlugin ::URI);
30
+ static REGISTRATION_DECLARATION PluginRegistration<ToobRecordMono > registration (ToobRecordMono ::URI);
31
31
32
32
constexpr char PREFERRED_PATH_SEPARATOR = std::filesystem::path::preferred_separator;
33
33
34
34
35
35
36
- RecordPlugin::RecordPlugin (
36
+ ToobRecordMono::ToobRecordMono (
37
37
double rate,
38
38
const char *bundle_path,
39
39
const LV2_Feature *const *features)
@@ -109,7 +109,7 @@ void generate_datetime_filename(char* buffer, size_t buffer_size, const char* pr
109
109
}
110
110
}
111
111
112
- void RecordPlugin ::MakeNewRecordingFilename ()
112
+ void ToobRecordMono ::MakeNewRecordingFilename ()
113
113
{
114
114
this ->recordingFilePath = this ->recordingDirectory ;
115
115
@@ -122,14 +122,14 @@ void RecordPlugin::MakeNewRecordingFilename()
122
122
123
123
}
124
124
125
- void RecordPlugin ::Activate ()
125
+ void ToobRecordMono ::Activate ()
126
126
{
127
127
this ->activated = true ;
128
128
super::Activate ();
129
129
this ->state = PluginState::Idle;
130
130
}
131
131
132
- void RecordPlugin ::UpdateOutputControls (size_t samplesInFrame)
132
+ void ToobRecordMono ::UpdateOutputControls (size_t samplesInFrame)
133
133
{
134
134
if (state == PluginState::Recording)
135
135
{
@@ -159,7 +159,7 @@ void RecordPlugin::UpdateOutputControls(size_t samplesInFrame)
159
159
}
160
160
}
161
161
162
- void RecordPlugin ::StopRecording ()
162
+ void ToobRecordMono ::StopRecording ()
163
163
{
164
164
if (this ->state == PluginState::Recording)
165
165
{
@@ -168,7 +168,7 @@ void RecordPlugin::StopRecording()
168
168
SetFilePath (this ->recordingFilePath .c_str ());
169
169
}
170
170
}
171
- void RecordPlugin ::Run (uint32_t n_samples)
171
+ void ToobRecordMono ::Run (uint32_t n_samples)
172
172
{
173
173
auto src = in.Get ();
174
174
auto dst = out.Get ();
@@ -229,14 +229,14 @@ void RecordPlugin::Run(uint32_t n_samples)
229
229
}
230
230
}
231
231
232
- void RecordPlugin ::Deactivate ()
232
+ void ToobRecordMono ::Deactivate ()
233
233
{
234
234
this ->activated = false ;
235
235
super::Deactivate ();
236
236
}
237
237
238
238
239
- bool RecordPlugin ::OnPatchPathSet (LV2_URID propertyUrid,const char *value)
239
+ bool ToobRecordMono ::OnPatchPathSet (LV2_URID propertyUrid,const char *value)
240
240
{
241
241
if (propertyUrid == this ->audioFile_urid )
242
242
{
@@ -246,15 +246,15 @@ bool RecordPlugin::OnPatchPathSet(LV2_URID propertyUrid,const char*value)
246
246
return false ;
247
247
248
248
}
249
- const char * RecordPlugin ::OnGetPatchPropertyValue (LV2_URID propertyUrid) {
249
+ const char * ToobRecordMono ::OnGetPatchPropertyValue (LV2_URID propertyUrid) {
250
250
if (propertyUrid == this ->audioFile_urid )
251
251
{
252
252
return this ->filePath .c_str ();
253
253
}
254
254
return nullptr ;
255
255
}
256
256
257
- void RecordPlugin ::SetFilePath (const char *filename)
257
+ void ToobRecordMono ::SetFilePath (const char *filename)
258
258
{
259
259
this ->filePath = filename;
260
260
if (activated)
0 commit comments