Author Topic: BASS_CONFIG_DEV_DEFAULT prevents proper default frequency detection  (Read 79 times)

Falcosoft

  • Guest
Hi Ian,
I have noticed that when BASS_SetConfig(BASS_CONFIG_DEV_DEFAULT, 1) is used then BASS_GetInfo() return 0 in the freq field. This would be only a minor problem but also calls like BASS_MIDI_StreamCreate(16, flags,  1) does not set the default frequency of the device properly (instead it uses 44100 in my case). Otherwise the default output (and changes) works correctly. If I remove  BASS_SetConfig(BASS_CONFIG_DEV_DEFAULT, 1) the default output frequency is detected properly and calls with '1' as freq parameter also uses the proper sample rate e.g. 192000.

Thanks in advance.

Ian @ un4seen

  • Administrator
  • Posts: 20210
Oh yes, I see that too. Here's an update that should fix the problem:

   www.un4seen.com/stuff/bass.zip

Falcosoft

  • Guest
Thanks, it's working as expected.