I’m working on a plugin that implements the AudioSoundMode
Capability, which provides the SupportedSoundModes
attribute. I was treating it as being similar to the SupportedMediaCommands
Attribute and setting it in onConnect()
. However, the plugin was crashing when that assignment occurred. I noticed that the Anthem IP Control Plugin also uses this Capability, but sets the SupportedSoundModes
Attribute in onSynchronizeDevices()
instead. I can’t test that plugin, but I presume it behaves correctly.
My questions are:
(1) Why does my plugin crash when I set the SupportedSoundModes
Attribute in onConnect()
?
(2) Should the SupportedSoundModes
Attribute only be set in onSynchronizeDevices()
? If so, why? Is there any documentation that explains why some Attributes can be set in one place/stage of setup vs another?
Thanks!
HFN