Author Topic: one soundcard- recording two sources at the same time  (Read 802 times)


  • Posts: 12
Hello :)
I have one sound card.
How do I initiate WASAPI to record two audio sources (such as microphone and speaker loopback) at the same time to two different files? As a way to use the BASS_WASAPI_Init to separate callback for both audio sources?

Ian @ un4seen

  • Administrator
  • Posts: 21219
You would need to make 2 BASS_WASAPI_Init calls, one for each source (with the "device" parameter set accordingly), and have the WASAPIPROC callback function writing to a different file in each case. BASS_WASAPI_GetDeviceInfo can be used to find the device numbers to use in the BASS_WASAPI_Init calls. When there are multiple initialized devices, BASS_WASAPI_SetDevice is used to set which device subsequent BASSWASAPI calls (eg. BASS_WASAPI_Start) apply to. Please see the documentation for details.


  • Posts: 12
Thank you very much for your help and comments. BASS library is sensational!

Best regards!