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

thilo64

  • Posts: 5
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: 21987
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: 5
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: 5
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: 21987
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.

thilo64

  • Posts: 5
Re: No signal inputs after Windows 10 update 1803
« Reply #5 on: 20 Mar '19 - 21:21 »
Hello,

A short thing to the StreamTest: bass.dll was not in the folder. But copying the new or the old Version in the folder shows the same error.
"Message=Es wurde versucht, eine Datei mit einem falschen Format zu laden. (Ausnahme von HRESULT: 0x8007000B)"
This should be no longer interesting.

The RecTest.exe is working fine with the new bass.dll. I can see all audio channels in the combobox and the sound will be recorded.
It doesn't work with the old dll.

Back to my app. I deleted the bass.dll and bassenc.dll in the system32- and the syswow64-folder and copied both (old versions) to the programm folder.
It was working as known. Changing to the new version of the bass.dll shows the same problem. No recording and just a file 1252 bytes long as i already uploaded last week.
I checked different of this files with an hexeditor - they have all the same content.
The version of the bassenc.dll has no influence. It's working with the old and new version.

Ian @ un4seen

  • Administrator
  • Posts: 21987
Re: No signal inputs after Windows 10 update 1803
« Reply #6 on: 21 Mar '19 - 17:07 »
If you're using BASSenc, you could also try running the pre-compiled RECTEST.EXE example from the BASSenc package (C\BIN folder). If that's working fine too, perhaps you could compare what it (RECTEST.C source file) and your code are doing differently to find the cause of the problem?

Falcosoft

  • Posts: 38
Re: No signal inputs after Windows 10 update 1803
« Reply #7 on: 21 Mar '19 - 19:02 »
Maybe this problem is related to this one?
http://www.un4seen.com/forum/?topic=17836.msg129545#msg129545

EWeiss

  • Posts: 390
Re: No signal inputs after Windows 10 update 1803
« Reply #8 on: 21 Mar '19 - 19:08 »
Maybe this problem is related to this one?
http://www.un4seen.com/forum/?topic=17836.msg129545#msg129545

seems to ::)
win 10 is a fucking stupid Alpha System and a never ending bugy Story.

greets


thilo64

  • Posts: 5
Re: No signal inputs after Windows 10 update 1803
« Reply #9 on: 24 Mar '19 - 15:32 »
Problem is solved .
To try the new updated bass.dll i made the Win10 1809 update this morning.
The recording was working fine still with the old bass.dll from 2011.
The new dll is not not working as already before.
So the solution seems to be the updated .net components.
I have no other idea.

Thanks for help