Author Topic: Bass 2.4.13+ WASAPI output on Windows  (Read 524 times)

Gabriel

  • Posts: 42
Bass 2.4.13+ WASAPI output on Windows
« on: 2 Aug '19 - 01:10 »
Hi Ian,

First let me congratulate you for adding Wasapi as standard output for Bass.

I just want to know if the process for Latency calculation and recording still the same as before.
For recording I remember having to call GetData until it returns a positive size.
For Latency calculation, I had to clock the time for the previous operation, and add the latency calculated with the BASS_DEVICE_LATENCY.

Should I make any changes to my code ? Thanks

Ian @ un4seen

  • Administrator
  • Posts: 22829
Re: Bass 2.4.13+ WASAPI output on Windows
« Reply #1 on: 2 Aug '19 - 13:35 »
No, you shouldn't need to make any changes to your code. BASS currently still uses DirectSound for recording by default (except for loopback devices). WASAPI recording is also available and can be enabled with the undocumented BASS_CONFIG_REC_WASAPI option (via BASS_SetConfig) before initializing the device. I think latency will be about the same. The main difference is that resampling is handled by Windows when using DirectSound, and by BASS when using WASAPI.

Gabriel

  • Posts: 42
Re: Bass 2.4.13+ WASAPI output on Windows
« Reply #2 on: 8 Aug '19 - 04:27 »
Thanks Ian, I'll give BASS_CONFIG_REC_WASAPI option a try