Author Topic: Setting WASAPI audio categories in Bass  (Read 810 times)

ed123

  • Posts: 5
Setting WASAPI audio categories in Bass
« on: 2 Jul '19 - 01:10 »
I am wondering if it's possible to specify WASAPI audio category in Bass the way it is described here: https://docs.microsoft.com/en-us/windows-hardware/drivers/audio/audio-signal-processing-modes

I am interested in particular in AudioCategory_Communications.

Ian @ un4seen

  • Administrator
  • Posts: 22813
Re: Setting WASAPI audio categories in Bass
« Reply #1 on: 2 Jul '19 - 16:29 »
Neither BASS or BASSWASAPI currently have that option, but here's a BASSWASAPI update for you to try:

   www.un4seen.com/stuff/basswasapi.zip

It adds BASS_WASAPI_CATEGORY_xxx flags (for use with BASS_WASAPI_Init) to request that a particular category is used. Note the category setting is only available on Windows 8 and above, and these new flags will be ignored on older Windows.

radio42

  • Posts: 4687
Re: Setting WASAPI audio categories in Bass
« Reply #2 on: 3 Jul '19 - 10:44 »
Is the RAW category missing in the new list of BASS_WASAPI_CATEGORY_xxx flags?

Ian @ un4seen

  • Administrator
  • Posts: 22813
Re: Setting WASAPI audio categories in Bass
« Reply #3 on: 3 Jul '19 - 13:01 »
Here's another update that adds a BASS_WASAPI_RAW flag:

   www.un4seen.com/stuff/basswasapi.zip

Please note the BASS_WASAPI_CATEGORY_xxx flag values have also changed.

ed123

  • Posts: 5
Re: Setting WASAPI audio categories in Bass
« Reply #4 on: 9 Jul '19 - 15:36 »
Is there 32-bit version available of basswasapi.dll?

sveakul

  • Posts: 90
Re: Setting WASAPI audio categories in Bass
« Reply #5 on: 9 Jul '19 - 19:38 »
Is there 32-bit version available of basswasapi.dll?

It's the one in the zip package that's NOT in the "x64" subfolder. ;)

ed123

  • Posts: 5
Re: Setting WASAPI audio categories in Bass
« Reply #6 on: 9 Jul '19 - 20:11 »
Thanks, my bad i missed that one  :)

rv

  • Posts: 319
Re: Setting WASAPI audio categories in Bass
« Reply #7 on: 21 Apr '20 - 22:03 »
Is there any interest to add the BASS_WASAPI_RAW flag for low latency event-driver exclusive output?
If I add it, will it make any problems on some configurations that does not support it? Better if it can simply be ignored on such configurations

I think maybe it help for some drivers that has the audio hardware acceleration checked and does not work

Ian @ un4seen

  • Administrator
  • Posts: 22813
Re: Setting WASAPI audio categories in Bass
« Reply #8 on: 22 Apr '20 - 14:32 »
You can try it but I don't think raw mode will make any difference in exclusive mode because the sound enhancements processing will/should already be bypassed then (let me know if you find that it does make a difference with some devices). Raw mode isn't always available, so you should be prepared to retry without the BASS_WASAPI_RAW flag if BASS_WASAPI_Init fails with error code BASS_ERROR_WASAPI_CATEGORY.