Author Topic: No signal inputs after Windows 10 update 1803  (Read 98 times)

thilo64

  • Posts: 3
Hello,
I'm using bass.dll and bassenc.dll in an MP3-Recorder written in VB2010.
The programm is recording the stream from the S/PDIF input of an Soundblaster X-fi card.
Bass.dll is version 2.4.8.1

Everything was working fine under WinXP, Win7 and also Win10 until update 1803
After the update the program will not find any one input channel.

This is the code to find the inputs:

    Try
      Bass.BASS_RecordInit(-1)

      Dim IT_List As String() = Bass.BASS_RecordGetInputNames
      For i = 0 To IT_List.Length - 1
        cbxRecQuelle.Items.Add(IT_List(i).ToString)
      Next

      Dim Idx As Integer = 0
      Dim info As New BASS_DEVICEINFO()
      While (Bass.BASS_RecordGetDeviceInfo(Idx, info))
        Bass.BASS_RecordInit(Idx)
        Bass.BASS_RecordSetInput(Idx, BASSInput.BASS_INPUT_OFF, -1)
        Idx += 1
      End While

      If RecDev_Nr > -1 Then
      Else : RecDev_Nr = 0
      End If
      cbxRecQuelle.SelectedIndex = RecDev_Nr
    Catch ex As Exception
      MessageBox.Show("lade_record_devices()" & vbCrLf & vbCrLf & _
          "InnerException: " & vbCrLf & ex.Message.ToString & vbCrLf & vbCrLf & _
          "Ausnahme: " & vbCrLf & ex.ToString, "Es wurden keine Aufnahmequellen gefunden", MessageBoxButtons.OK, MessageBoxIcon.Error)
      FehlerFlag = True
    End Try


When i started under WinXP all inputs were listed S/PDIF, Line in, Mic in...
Later under Win7 only the Main signal (in German Hauptlautstaerke) was listed but it was working.
The same under Win10 i have still Version 1709 running.

I tried different things in the audio settings but nothing did help.
I can switch the signal from S/PDIF to the analog output but it would not be found in the program.

I hope some body can help me.

Ian @ un4seen

  • Administrator
  • Posts: 21593
Re: No signal inputs after Windows 10 update 1803
« Reply #1 on: 12 Mar '19 - 14:00 »
Please first try upgrading to the latest BASS version (2.4.14). If you still have the problem with that, next try running the pre-compiled RECTEST.EXE example from the BASS package (C\BIN folder) and see if you can reproduce the problem with that. If that works then it may be a problem with how your app is handling input selection. Note that since Windows Vista, each recording input has been presented as a separate device, so the BASS_RecordInit call also determines which input is used and BASS_RecordSetInput can no longer be used to switch inputs.

thilo64

  • Posts: 3
Re: No signal inputs after Windows 10 update 1803
« Reply #2 on: 13 Mar '19 - 22:39 »
I changed the bass.dll and the bassenc.dll in the c:\windows\syswow64 folder against new version.
The result was no more recordings just a file 1252 bytes long after each start but "what you hear" was found as input.
Copying back the old bassenc.dll did not help. When i called back the old bass.dll it was working again.
I added one example.

Further i tried to run the StreamTest from the .net-examples under VB2015.
The app stopped with an error in line 466
    If False = Bass.BASS_Init(-1, 44100, BASSInit.BASS_DEVICE_DEFAULT, Handle) Then
      MsgBox("BASS Init Error!")
    End If
 

Before Tuesday next week i have no time to try other things.
I want to have all things working before i update Windows to version 1809.


thilo64

  • Posts: 3
Re: No signal inputs after Windows 10 update 1803
« Reply #3 on: 13 Mar '19 - 22:46 »
 I posted too fast. This are the details of the message:

System.TypeInitializationException wurde nicht behandelt.
  Message=Der Typeninitialisierer für "Un4seen.Bass.Bass" hat eine Ausnahme verursacht.
  Source=Bass.Net
  TypeName=Un4seen.Bass.Bass
  StackTrace:
       bei Un4seen.Bass.Bass.BASS_Init(Int32 device, Int32 freq, BASSInit flags, IntPtr win)
       bei StreamTest.frmTag.frmTag_Load(Object sender, EventArgs e) in E:\Eigene Dateien\Visual Studio 2015\Projects VB\Bass\StreamTest\frmTag.vb:Zeile 466.
       bei System.Windows.Forms.Form.OnLoad(EventArgs e)
       bei System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       bei System.Windows.Forms.Control.CreateControl()
       bei System.Windows.Forms.Control.WmShowWindow(Message& m)
       bei System.Windows.Forms.Control.WndProc(Message& m)
       bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       bei System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
  InnerException:
       Message=Die DLL "bass": Das angegebene Modul wurde nicht gefunden. (Ausnahme von HRESULT: 0x8007007E) kann nicht geladen werden.
       Source=Bass.Net
       TypeName=""
       StackTrace:
            bei Un4seen.Bass.Bass.BASS_SetConfig(BASSConfig option, Int32 newvalue)
            bei Un4seen.Bass.Bass.InitBass()
            bei Un4seen.Bass.Bass..cctor()
       InnerException:

Ian @ un4seen

  • Administrator
  • Posts: 21593
Re: No signal inputs after Windows 10 update 1803
« Reply #4 on: 14 Mar '19 - 15:37 »
That error message looks like it was unable to find BASS.DLL. Make sure it's alongside your app's EXE, and that it's the correct one for your project's "platform" setting

If you haven't already, please also try running the pre-compiled RECTEST.EXE example included in the BASS package (C\BIN folder) with latest BASS.DLL.