Hi
0 = no sound, 1 = first real output device
so it should be
Call BASS_Init(1, 44100, 0, frmMain.hWnd, 0) 'First device
Call BASS_Init(2, 44100, 0, frmMain.hWnd, 0) 'Second device
I would recommend to place the Init Stuff inside OnFormCreate or OnFormLoad
and
Bass_Free inside OnFormDestroy
ErrorCode 14 will mean already initialized (BASS_ERROR_ALREADY)
The Bass_SetDevice functions that use the device selection are the following: BASS_Free, BASS_GetInfo, BASS_Start, BASS_Stop, BASS_Pause, BASS_SetVolume, BASS_GetVolume, BASS_Set3DFactors, BASS_Get3DFactors, BASS_Set3DPosition, BASS_Get3DPosition. It also determines which device is used by a new sample/stream/music: BASS_MusicLoad, BASS_SampleLoad, BASS_StreamCreateFile, etc.