Dear All,
I have some questions about implementing a Ember+ Provider.
The example application __sample_provider.c in the folder/ember-plus/libemberr_slim/Source gave me a good starting point.
In the application several node's are created in the buildTree() function.
The EmberPlusView.exe application show me the Ember+ Provider, and i an browse through all nodes.
My question is: How can i simply update a parameter in my provider application.
If we look at the audio gain parameter , how can i update the value of it if it changes in the current hardware device?
Do i need to search first the parameter in the tree with findNode() to locate the pointer to the actual memory address of the variable?
And do i need to notify the customers of the value change of this parameter? or is Ember+ library handling all this for me?
i search for a simple way to update a parameter value...
Thank you!
Kind Regards,
Corné Doggen
static void buildTree(SampleNode *pRoot)
{
SampleNode *pVisualRoot, *pFood, *pNonFood, *pStreams, *pAudio;
pVisualRoot = createNode(pRoot, "root", "root");
pFood = createNode(pVisualRoot, "food", "Some food");
createNode(pFood, "parsley", "tasty herb");
createNode(pFood, "salad", "eat a lot of it!");
pNonFood = createNode(pVisualRoot, "non-food", "tech stuff");
pAudio = createNode(pNonFood, "audio", "ask Lawo");
createGain(pAudio);
createFaderStart(pAudio);
createVolume(pAudio);
createFormat(pAudio);
createNode(pAudio, "dangling", NULL);
pStreams = createNode(pNonFood, "streams", "see 'em move");
pStreams->node.pSchemaIdentifiers = stringDup("de.l-s-b.emberplus.samples.streams");
pStreams->fields |= GlowFieldFlag_SchemaIdentifier;
createStream1(pStreams);
createStream2(pStreams);
createStream3(pStreams);
createStream4(pStreams);
}