19 Jun '13 - 20:50 *
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: BASS_ASIO crash when  (Read 375 times)
tomas.knoll
Posts: 10


« on: 11 Aug '11 - 19:10 »
Reply with quoteQuote

hi,
i have problem with bassasio. I am using delphi. As asio driver i use ASIO4ALL
I use two type USB headsets. One Genius, with support 8KHz microphone sampling and second Sound Blaster with 44100 and 48khz sampling only.
When i call BASS_ASIO_Start(0) at Sound blaster at 8KHz , application crash.. There is no method how to check device supporting sample rate. How to avoid application crash ?  (i try exceptions... )

And second problem is that when i initialize device at 48KHz, all is fine, but when i want to call BASS_ASIO_ChannelSetRate(true, 0, 8000 ); it crashes too.
Is resampling 48Khz to 8Khz supported for input and output channels ?

thank you for your time,
Tomas
Logged
Ian @ un4seen
Administrator
Posts: 15366


« Reply #1 on: 12 Aug '11 - 15:36 »
Reply with quoteQuote

Please try the latest build, available here...

   www.un4seen.com/stuff/bassasio.dll

Let me know if the problem persists.
Logged
tomas.knoll
Posts: 10


« Reply #2 on: 15 Aug '11 - 07:32 »
Reply with quoteQuote

thank you,
this solve my problem.

Now program not crash. And i add error check after all asio calls
.
.
.

if not BASS_ASIO_SetRate( 8000 ) then
    begin
    showMessage( 'error: BASS_ASIO_SetRate ' +intToStr( BASS_ASIO_ErrorGetCode() ));
    end;

  if not BASS_ASIO_ChannelSetRate( true, 0, 8000 ) then
    begin
    showMessage( 'error: BASS_ASIO_ChannelSetRate( true, 0, 8000  ) ' +intToStr( BASS_ASIO_ErrorGetCode() ));
    end;


 if not (BASS_ASIO_Start(0)) then
    begin
    BASS_ASIO_Free();
    BASS_Free();
    ShowMessage('Can''t initialize recording device');
    end;
.
.
.
thank you,
Tomas
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines