Author Topic: AV in bass.dll  (Read 243 times)

MikeV

  • Posts: 181
AV in bass.dll
« on: 8 Feb '18 - 13:57 »
I'm getting an access violation in bass.dll if I make the following call

Code: [Select]
BASS_Init(9, 44100, BASS_DEVICE_LATENCY, Forms::Application->Handle, NULL);
also with

Code: [Select]
BASS_Init(9, 48000, 0, Forms::Application->Handle, NULL);
but all is OK if I replace the index 9 with 4.

Here's the output of the list demo

Code: [Select]
Output Devices
1: FCA1616 Line 5/6 (Behringer FCA1616 WDM)
        driver: {0.0.0.00000000}.{05388e04-6a98-4e04-aa85-ed8c4f5de605}
        type: Speakers
        flags: enabled (2000001)
2: FCA1616 SPDIF (Behringer FCA1616 WDM)
        driver: {0.0.0.00000000}.{32689863-1b1c-459f-9e87-ef4feb0154d7}
        type: Speakers
        flags: enabled (2000001)
3: FCA1616 Line 7/8 (Behringer FCA1616 WDM)
        driver: {0.0.0.00000000}.{3734af95-42de-4b92-b1fc-bf8088fea8d9}
        type: Speakers
        flags: enabled (2000001)
4: PHL BDM4350-0 (NVIDIA High Definition Audio)
        driver: {0.0.0.00000000}.{3f7a7fd8-1c88-43d6-ba54-664b62e9a2da}
        type: HDMI
        flags: enabled default (a000003)
5: Realtek Digital Output (Realtek High Definition Audio)
        driver: {0.0.0.00000000}.{a0f48911-6b7e-468a-b007-b59aec6a2eb6}
        type: SPDIF
        flags: enabled (9000001)
6: Speakers (Blackmagic Intensity Pro 4K Audio)
        driver: {0.0.0.00000000}.{a7b169e8-21f5-410d-aae5-76d033136865}
        type: Speakers
        flags: enabled (2000001)
7: FCA1616 Line 3/4 (Behringer FCA1616 WDM)
        driver: {0.0.0.00000000}.{d0b66e6a-5276-471c-ad5b-bc4fca7ce9b9}
        type: Speakers
        flags: enabled (2000001)
8: Realtek Digital Output(Optical) (Realtek High Definition Audio)
        driver: {0.0.0.00000000}.{e88c02d2-6619-49b7-9aba-0c0e70423ad4}
        type: SPDIF
        flags: enabled (9000001)
9: FCA1616 Line 1/2 (Behringer FCA1616 WDM)
        driver: {0.0.0.00000000}.{eb75fdaf-3557-4526-9ff4-27c88b54d5bf}
        type: Speakers
        flags: enabled (2000001)

The only demo I could find that allows me to select a particular output device is multi, when I use that and use device 9 in either selection the app closes immediately (I do not get the next dialog allowing me to open files).

Using BASS 2.4.13.2 64 bit Windows.

MikeV

  • Posts: 181
Re: AV in bass.dll
« Reply #1 on: 8 Feb '18 - 14:31 »
Some more findings that may help: if I add the BASS_DEVICE_DSOUND flag I do not get an AV and the error returned is BASS_ERROR_DEVICE.

If I output to the same two channels but using ASIO (which obviously does not use BASS_Init) all works fine.

I had an old application that uses an old 32 bit BASS and it won't play either, nor will VLC. So this might very well be a bug in Behringer's driver (odd though for something so basic) but the reason for posting is the AV (which I assume no one wants under any circumstance). I prefer an error.

Ian @ un4seen

  • Administrator
  • Posts: 21017
Re: AV in bass.dll
« Reply #2 on: 8 Feb '18 - 15:23 »
I will send you a debug version to get more info on what's happening with that device.