I've been reading awhile about events.
I can actually work with them and create custom events for booleans, integer, arrays, etc, but only for those I've created.
I cant seem to figure out how to add a listener upon a variable that I did not declare.
For exaple, via the CoreAudioAPI library I can readout the currrent speakerconfig. ie. 8. (= 7.1 surround).
Which is an integervalue (device.AudioMeterInformation.PeakValues.Count)
How Can I automatically fire an event when that value changes?
I mean, without using a small thread, timer, etc...
Is this even possible?
thx in advance,