Author Topic: BASS_RecordStart on Windows 10 fails  (Read 214 times)

EWeiss

  • Posts: 373
BASS_RecordStart on Windows 10 fails
« on: 28 Dec '18 - 10:08 »
i have Change my Hardware and must go to Windows 10.. Windows 7 is no longer available and i can not install it again (MS and Intel block it)  (bad System i think)

now Recording no longer work.

Code: [Select]
BassChannel.lngChan = BASS_RecordStart(44100, 2, 0, AddressOf DuffRecording, 0)which allways Fails.

Code: [Select]
Public Function DuffRecording(ByVal handle As Long, _
                              ByVal buffer As Long, _
                              ByVal Length As Long, _
                              ByVal user As Long) As Integer

    On Error GoTo DuffRecordingErr

    DuffRecording = BASSTRUE 'continue recording

Exit Function

DuffRecordingErr:
    Trace "DuffRecording Error", "", "Error", err.Number, err.Description
    On Error GoTo 0

End Function

no idea what is wrong in Windows 10

greets

EWeiss

  • Posts: 373
Re: BASS_RecordStart on Windows 10 fails
« Reply #1 on: 28 Dec '18 - 13:30 »
OK is see…

Stupid Microsoft has deactivate StereoMixer in Windows 10
so i think bass is also broken BASS_RecordStart want no longer works in combination with StereoMixer.

greets
« Last Edit: 28 Dec '18 - 15:32 by EWeiss »

Ian @ un4seen

  • Administrator
  • Posts: 21447
Re: BASS_RecordStart on Windows 10 fails
« Reply #2 on: 28 Dec '18 - 15:42 »
Please check the error code with BASS_ErrorGetCode. Also confirm what BASS.DLL version you're using with BASS_GetVersion.

Falcosoft

  • Posts: 16
Re: BASS_RecordStart on Windows 10 fails
« Reply #3 on: 28 Dec '18 - 15:50 »
Hi,
This is not a Windows 10 specific problem and has nothing to do with 'Microsoft has deactivate StereoMixer in Windows 10'.
The default HD Audio driver supplied by Microsoft never supported a 'Stereo Mix' recording source even with Windows 7/8.
If you remember you had a 'Stereo Mix' recording source before with your same hardware then you have most likely a Realtek/Soundmax integrated HD Audio device.
It's because e.g. Creative calls the same recording source 'What You Hear'.
So first you should check that you have installed the vendor specific driver instead of the generic MS driver.
If you have the right driver it's still possible that Stereo Mix is neither active nor visible. So you should make sure that 'Show Disabled devices' option is enabled and then activate the disabled Stereo Mix source.
Here are videos how to do this on the older interface and also on the new one:
https://youtu.be/Bd3moKLV5sE
https://youtu.be/0smiTx8DC20

Nevertheless Bass recording should work even without Stereo Mix, but you have to make sure that there is at least one enabled/active recording source on your system. E.g. Mic and Line in recording sources are typically not active until you attach a device to them. You have not shown the recording initialization part of your code but I suppose you used BASS_RecordInit(-1) to use default device. But even referencing the default device requires an active source to work.
I have just checked my program SoundRedirector that also uses Bass recording infrastructure and it works flawlessly with Windows 10.
http://falcosoft.hu/softwares.html#sndredirect
So that must not be true that Bass recording is generally broken on Windows 10.
(And I also have working 'Stereo Mix' with Realtek HD Audio driver on Windows 10)

EWeiss

  • Posts: 373
Re: BASS_RecordStart on Windows 10 fails
« Reply #4 on: 28 Dec '18 - 16:20 »
hello?

first: i have my StereoMixer activate in my Sound Panel.
second: i use the last Driver from Realtek called "0008-Win7_Win8_Win81_Win10_R282" v.6.0.1.8186
third: see my shot..
four: i have Nothing Change in my Code after come from Win7 to Win10 all works fine 100% under Win7 but on Win10 it's crash.

i hope you understand ;)
i have written Bass_Vis and working with Audio a Long time a go..

but my Trouble now i can not use BASS_ErrorGetCode the Application (VB6) crash after call
Code: [Select]
        BassChannel.lngChan = BASS_RecordStart(44100, 2, 0, AddressOf DuffRecording, 0)
        If BassChannel.lngChan = 0 Then
            GoTo err_
        End If

"Goto err_" is then never fired

but i am using Bass v. 2.4.13.0 include the last API (Bass.bas)

greets

« Last Edit: 28 Dec '18 - 17:05 by EWeiss »

Chris

  • Posts: 1861
Re: BASS_RecordStart on Windows 10 fails
« Reply #5 on: 31 Dec '18 - 21:55 »
Hi Emil. What happens if you remove the Recordcallback ?

EWeiss

  • Posts: 373
Re: BASS_RecordStart on Windows 10 fails
« Reply #6 on: 1 Jan '19 - 09:52 »
Hi Emil. What happens if you remove the Recordcallback ?

Hi Chris..
i think is not a problem of Bass but of Win10 is a bad Alpha System.
thanks.

greets

Ian @ un4seen

  • Administrator
  • Posts: 21447
Re: BASS_RecordStart on Windows 10 fails
« Reply #7 on: 1 Jan '19 - 14:32 »
but i am using Bass v. 2.4.13.0 include the last API (Bass.bas)

You could try the latest build to see if it makes any difference. That's available here:

   www.un4seen.com/stuff/bass.zip

If you still have the problem, please also see if you can reproduce it with the pre-compiled RECTEST.EXE example that's included in the BASS package (C\BIN folder).

EWeiss

  • Posts: 373
Re: BASS_RecordStart on Windows 10 fails
« Reply #8 on: 2 Jan '19 - 04:05 »
found the Trouble and comes from Windows 10 - Alpha
Nothing works if called the foldername as example "Emil's Medialplayer" if remove the letter Dez-39- Hex-27 from my Foldername then all works fine.
Also change Emil's Medialplayer to Emils Medialplayer..

Stupid M$ with your Alpha Windows.
See my Video if copy my Folder inside a new Folder called x.

https://share.vodafone.de/ajax/share/0c22b8b7056ce50cc00140c56ce5419fb6c2acf523e07763/1/8/NDA/NDAvMjcw

greets

« Last Edit: 2 Jan '19 - 06:45 by EWeiss »