25 May '13 - 07:20 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: ASIO channels bug?  (Read 1099 times)
JacekH
Posts: 24


« on: 15 Feb '07 - 13:34 »
Reply with quoteQuote

Delphi 2005 Pro, WinXP SP2, ASIO4ALL

Help (BASSASIO) file says:

BOOL BASS_ASIO_ChannelSetVolume(
    BOOL input,
    DWORD channel,
    float volume
);

bassasio.pas doesn't have a declaration BASS_ASIO_ChannelSetVolume. So I added:
function BASS_ASIO_ChannelSetVolume(input:BOOL; channel:DWORD; volume: single): BOOL; stdcall; external bassasiodll;
and it works.

Now the problem. I'm doing a simple test playing 4 stereo streams. Look at the code:


  BASS_ASIO_SetDevice(0);
  BASS_ASIO_ChannelEnable(False, 0, @AsioProc, 0);
  BASS_ASIO_ChannelJoin(False, 1, 0);
  BASS_ASIO_ChannelSetFormat(False, 0, BASS_ASIO_FORMAT_FLOAT);
  BASS_ChannelGetInfo(Drums, ChanInfo);
  BASS_ASIO_ChannelSetRate(False, 0, ChanInfo.freq);
  BASS_ASIO_ChannelReset(False, 0, BASS_ASIO_RESET_VOLUME);

  BASS_ASIO_ChannelEnable(False, 2, @AsioProc, 1);
  BASS_ASIO_ChannelJoin(False, 3, 2);
  BASS_ASIO_ChannelSetFormat(False, 2, BASS_ASIO_FORMAT_FLOAT);
  BASS_ChannelGetInfo(Bas, ChanInfo);
  BASS_ASIO_ChannelSetRate(False, 2, ChanInfo.freq);
  BASS_ASIO_ChannelReset(False, 2, BASS_ASIO_RESET_VOLUME);

and so on (next two channels). But in the final mix channels 4-5 (3rd stereo stream) and 6-7 (4th stereo stream) play with lower level (-6 dB ? or more...). It's the same with "speakers" demo. Any solution? Is it an ASIO (ASIO4ALL) or BASS_ASIO bug?

Regards,
Jacek
Logged
Ian @ un4seen
Administrator
Posts: 15276


« Reply #1 on: 15 Feb '07 - 17:02 »
Reply with quoteQuote

bassasio.pas doesn't have a declaration BASS_ASIO_ChannelSetVolume. So I added:

Oops! An updated BASSASIO.PAS is now in the download.
 
Now the problem. I'm doing a simple test playing 4 stereo streams. Look at the code:

...

and so on (next two channels). But in the final mix channels 4-5 (3rd stereo stream) and 6-7 (4th stereo stream) play with lower level (-6 dB ? or more...). It's the same with "speakers" demo. Any solution? Is it an ASIO (ASIO4ALL) or BASS_ASIO bug?

It could be a hardware thing. Do you get the same thing without ASIO, eg. using the standard BASS SPEAKERS example?

Also check the speaker levels in the device's control panel.
Logged
JacekH
Posts: 24


« Reply #2 on: 16 Feb '07 - 00:48 »
Reply with quoteQuote

My mistake. I tested BASS_ASIO on a machine with on-board audio and ASIO4ALL driver. I thought that ASIO channel is the same as BASS_Channel but using ASIO driver. I've never used ASIO4ALL before. But it seems that its 8 virtual channels is a problem. I opened the project home on RME HDSP II, listed devices and now it's clear, that ASIO devices are drivers but channels are ASIO outputs. So there's no problem with playing four stereo waves - each to individual stereo output, perfectly synced. That's what I've been looking for.

The only problem is MIDI and playing streams in sync with audio (ASIO device)....

Regards,
Jacek
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines