Author Topic: ASIO Problem  (Read 4416 times)

rv

  • Posts: 286
Re: ASIO Problem
« Reply #25 on: 31 Oct '18 - 18:04 »
Oh ! In fact, it is not the proc that is causing problem, but the user parameter

In fact, a simple Msgbox(_AudioStream) is causing the error too
So in fact the error is more in the line before with

_AudioStream = BASS_Mixer_StreamCreate(44100, 2, BASS_SAMPLE_FLOAT Or BASS_STREAM_DECODE)

With _AudioStream returning a HUGE value more than a 32 bit integer can deal

bass and bassmix are also the latest from stuff

Ian @ un4seen

  • Administrator
  • Posts: 21949
Re: ASIO Problem
« Reply #26 on: 31 Oct '18 - 18:11 »
What is the type of the "_AudioStream" variable? If it isn't an "int", try changing it to that.

rv

  • Posts: 286
Re: ASIO Problem
« Reply #27 on: 31 Oct '18 - 18:16 »
_AudioStream is Uint32
Returned value is = 2147483649

rv

  • Posts: 286
Re: ASIO Problem
« Reply #28 on: 31 Oct '18 - 18:22 »
wow

changing the user from Intptr to Uint32 resolved the issue


Ian @ un4seen

  • Administrator
  • Posts: 21949
Re: ASIO Problem
« Reply #29 on: 1 Nov '18 - 13:41 »
I don't think that will work in 64-bit though, because it won't match the size of a pointer. If you're using unsigned handles, you could try using "UIntPtr" (instead of "IntPtr") for the "proc" and "user" parameters.

rv

  • Posts: 286
Re: ASIO Problem
« Reply #30 on: 1 Nov '18 - 14:09 »
UIntPtr works for user but not for proc in 64 bit

rv

  • Posts: 286
Re: ASIO Problem
« Reply #31 on: 1 Nov '18 - 14:25 »
OK, finally, I have set IntPtr for proc and UintPtr for user
And set value -1 directly for proc
And the UInt32 value of the Bass mixer handle

Works on 32 and 64 bit

udo

  • Posts: 50
Re: ASIO Problem
« Reply #32 on: 3 Jun '19 - 13:01 »
@Ian. Hi.

are these functions available at the newest vesion of asio- and wasapi.dll?
I cannot find it at bass.net.

Udo

Ian @ un4seen

  • Administrator
  • Posts: 21949
Re: ASIO Problem
« Reply #33 on: 3 Jun '19 - 13:58 »
The BASSASIO update (v1.4) has been released but not the BASSWASAPI update yet. The next BASS.Net update will include support for the new BASSASIO stuff.

olitee

  • Posts: 2
Re: ASIO Problem
« Reply #34 on: 13 Jul '19 - 10:11 »
Ian, any estimate as to when the WASAPI version will be released?

Ian @ un4seen

  • Administrator
  • Posts: 21949
Re: ASIO Problem
« Reply #35 on: 15 Jul '19 - 14:21 »
Nothing definite at the moment. I would like the new option to be a bit simpler to use before the final release. The issue is that you currently need to create a stream before calling BASS_WASAPI_Init but you can't always be sure what sample format is supported until after you call BASS_WASAPI_Init. I think the solution to that is to either have BASS_WASAPI_Init create the stream itself and add a function to retrieve the handle, or allow the stream handle to be set afterwards via another function. I'm probably leaning to towards the latter.

rv

  • Posts: 286
Re: ASIO Problem
« Reply #36 on: 15 Jul '19 - 14:57 »
I am using the actual way since many months and it works great
I am calling BASS_WASAPI_CheckFormat before the mixer creation, to be sure it exists