Yes, it is possible. You need to keep rolling over to new WAV files to prevent them from getting too long.
The main challenge is to record all four input channels simultaneously. Your WaveIn driver may not let you do this, so you'd have to look at WasapiCapture or the AsioOut class which does actually also support recording.
The main challenge is to record all four input channels simultaneously. Your WaveIn driver may not let you do this, so you'd have to look at WasapiCapture or the AsioOut class which does actually also support recording.







