@@ -206,9 +206,9 @@ namespace impl
206206
207207
208208 // Example of audio sender control class descriptors. Used below for setting up a sender control class
209- nmos::nc_class_id
209+ void
210210 make_audio_sender_descriptors (nmos::experimental::control_protocol_state & control_protocol_state,
211- const web::json::value & sender_data) {
211+ const web::json::value & sender_data, nmos::nc_class_id snd_class_id ) {
212212 using web::json::value;
213213 using web::json::value_of;
214214
@@ -281,8 +281,6 @@ namespace impl
281281 snd_control_property_descriptors.push_back (nmos::experimental::make_control_class_property_descriptor (U (" subscription" ), { 3 , 11 }, subscription_property, U (" SenderObjectType" ), true , true , false , false , web::json::value::null ()));
282282 snd_control_property_descriptors.push_back (nmos::experimental::make_control_class_property_descriptor (U (" transport" ), { 3 , 12 }, transport_property, U (" NcString" ), true , true , false , false , web::json::value::null ()));
283283
284- auto snd_class_id = nmos::nc::make_class_id (nmos::nc_worker_class_id, 0 , { 5 });
285-
286284 // method and event descriptors are defined by defaults in the function prototype, so only need to pass the property descriptors
287285 utility::string_t descriptor_description = utility::string_t (U (" AudioSenderControl" )) + utility::string_t (U (" control class descriptor" ));
288286 auto sender_control_class_descriptor =
@@ -292,8 +290,6 @@ namespace impl
292290
293291 // Insert class descriptor into the nmos-cpp framework
294292 control_protocol_state.insert (std::move (sender_control_class_descriptor));
295-
296- return snd_class_id;
297293 }
298294
299295 // Example of an audio sender control class
@@ -1365,7 +1361,8 @@ void node_implementation_init(nmos::node_model& model, nmos::experimental::contr
13651361 };
13661362
13671363 // audio sender control descriptors
1368- auto audio_sender_class_id = impl::make_audio_sender_descriptors (control_protocol_state, audio_sender_for_control_protocol);
1364+ auto audio_sender_class_id = nmos::nc::make_class_id (nmos::nc_worker_class_id, 0 , { 5 });
1365+ impl::make_audio_sender_descriptors (control_protocol_state, audio_sender_for_control_protocol);
13691366
13701367 // example root block
13711368 auto root_block = nmos::make_root_block ();
0 commit comments