JASIOHost is based upon the observer model of software design. In order to successfully gather audio data from an Audio Input – one must write a class that is able to handle the data returned – in a similar fashion to how you may handle UI events
Here’s an example…
That’s all there is to it! This basic class simply initialises the interface, and then writes out whatever sound is received by the inputs unchanged to the output channels. A couple of assumptions are made:
There are exactly two outputs (stereo) – adjusting the program logic would allow more or less.
Input gain is set by the hardware
The necessary JNI files are correctly configured on the system.