I would like to create a Thread in C# which will be counting frequency of sound at the microphone input of the computer. I am not asking about the FFT algorithm but just how to start a thread so I can modify A.hz field while Thread.hz is changing.
There will be only 1 Thread.
public class A()
{
Thread t;
int hz; <-- i would like to change this when
A()
{
starts Thread
onchange t.hz modifies and dispays this.hz
}
}
class Thread
{
int hz; <-- this changes
void computeFrequency() <-- because of that method
{
changesHZField...
}
}