19 Jun '13 - 20:50
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
Un4seen Developments Forum
>
Developments
>
BASS
> Topic:
BASS_ASIO crash when
Pages: [
1
]
« previous
|
next »
Reply
|
Print
Author
Topic: BASS_ASIO crash when (Read 375 times)
tomas.knoll
Posts: 10
BASS_ASIO crash when
«
on:
11 Aug '11 - 19:10 »
Quote
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
Re: BASS_ASIO crash when
«
Reply #1 on:
12 Aug '11 - 15:36 »
Quote
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
Re: BASS_ASIO crash when
«
Reply #2 on:
15 Aug '11 - 07:32 »
Quote
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
Un4seen Developments Forum
>
Developments
>
BASS
> Topic:
BASS_ASIO crash when
« previous
|
next »
Jump to:
Please select a destination:
-----------------------------
Developments
-----------------------------
=> BASS
=> XMPlay
=> MO3
-----------------------------
Off Topic
-----------------------------
=> General Discussion
Loading...