jerome-jouvie / NativeBass

NativeBass 1.1.2 - Java binding for BASS audio system - http://www.un4seen.com/bass.html
http://jerome.jouvie.free.fr/nativebass/index.php
23 stars 7 forks source link

Setting device id when playing a channel has no effect #3

Closed bitleader closed 7 years ago

bitleader commented 11 years ago

I've 2 sound cards in my pc: an motherboard integrated realtek and a discrete asus sonar. When the default sound card in windows is the sonar then changing to the realtek with method BASS_ChannelSetDevice(...) has no effect. However no error code is returned when calling the BASS_Init() and BASS_ChannelSetDevice() methods. All the sample heard from the sonar. When the default sound card in windows is the realtek one, than changing to the sonar is working fine. I tried the built in demo app called Test3D too without success. I don't know if it is a JNativeBass failure or my system failure. However I tried other 3rd party program (AIMP3) using BASS and it works fine no matter which sound card is my windows default.

Using on windows 7 x64 with java 7u10 x32 with JNativeBass v1.1.2

jerome-jouvie commented 11 years ago

As far as I can see, from the NativeBass side it seems ok. Try upgrading to latest bass.dll, or with the one aimp3 is using.

bitleader commented 11 years ago

Hello,

I've already tried your suggestion without success. I've overwritten the bass.dll with the aimp's newest one (v2.4.9) but the issue is still the same.

I've also tried your lib on my second computer having only an integrated realtek sound card with option "Make front and rear output devices playback two different audio streams simultaneously". In that case your lib works perfectly no matter which output device (front or rear) is the windows default one.

The issue only occurs (in my case on my first computer) when the windows default is the asus sonar. By the way I've tried another 3rd party app called potplayer using BASS without any problem.

Anyway your wrapper is a big help for me to use BASS. Thanks!

jerome-jouvie commented 11 years ago

The best in that case would to ask about this problem in bass forum.