mdias / rs_asio

ASIO for Rocksmith 2014
MIT License
1.02k stars 99 forks source link

No output device detected with Scarlet 2i2 #201

Closed damnms closed 3 years ago

damnms commented 3 years ago

I first tried to run rocksmith 2014 on linux, but failed. So i thought i'll check it on windows first to be sure to have the hardware correctly configured (plugged together/configured). On Windows, as soon as i use the .dll's, i get that error. If i dont use the .dll's, it works.

I used the .log to identify the name of the device (of the focusrite), but there was only my onboard soundcard given, so i took that name "Focusrite USB ASIO" which i found somewhere in a thread/issue or so. But that did also not help.

0.000 [INFO]   - Wrapper DLL loaded (v0.5.5)
0.000 [INFO]  PatchOriginalCode
0.190 [INFO]  Patching CoCreateInstance
0.190 [INFO]  Patch_CallAbsoluteAddress - num locations: 5
0.190 [INFO]  Patching call at 01C5AA85
0.190 [INFO]  Patching call at 01F03B6E
0.190 [INFO]  Patching call at 01F5C681
0.190 [INFO]  Patching call at 01FAEF75
0.190 [INFO]  Patching call at 01FAF40D
0.190 [INFO]  Patching PortAudio MarshalStreamComPointers
0.190 [INFO]  Patch_CallRelativeAddress - num locations: 1
0.190 [INFO]  Patching call at 01F03059
0.190 [INFO]  Patching PortAudio UnmarshalStreamComPointers
0.190 [INFO]  Patch_CallRelativeAddress - num locations: 1
0.190 [INFO]  Patching call at 01F0310E
0.202 [INFO]  Patched_CoCreateInstance called: IID_IMMDeviceEnumerator
0.203 [INFO]  DebugDeviceEnum::RegisterEndpointNotificationCallback
0.204 [INFO]  Patched_CoCreateInstance called: IID_IMMDeviceEnumerator
0.204 [INFO]  DebugDeviceEnum::GetDefaultAudioEndpoint - dataFlow: eRender - role: eMultimedia
0.204 [INFO]  RSAggregatorDeviceEnum::UpdateAvailableDevices
0.204 [INFO]  AsioHelpers::FindDrivers
0.204 [INFO]    Creative SB/SBX AE DSD ASIO Device
0.204 [INFO]    Creative SB/SBX AE series ASIO Device
0.204 [INFO]    Creative SBX AE series ASIO Device
0.204 [INFO]  RSAsioDeviceEnum::UpdateAvailableDevices - output requesting ASIO driver: Focusrite USB ASIO
0.204 [ERROR]  RSAsioDeviceEnum::UpdateAvailableDevices - failed.
0.204 [INFO]  DebugDeviceEnum::UpdateAvailableDevices - 0 render devices, 0 capture devices
0.204 [INFO]    hr: 80070490
0.204 [INFO]    *ppEndpoint: 00000000
0.204 [INFO]  DebugDeviceEnum::GetDefaultAudioEndpoint - dataFlow: eCapture - role: eMultimedia
0.204 [INFO]    hr: 80070490
0.204 [INFO]    *ppEndpoint: 00000000
0.204 [INFO]  DebugDeviceEnum::EnumAudioEndpoints - dataFlow: eAll - dwStateMask: 1
0.204 [INFO]    hr: S_OK
0.204 [INFO]    *ppDevices: 12DECE18
4.573 [INFO]  Patched_CoCreateInstance called: IID_IMMDeviceEnumerator
4.573 [INFO]  DebugDeviceEnum::GetDefaultAudioEndpoint - dataFlow: eRender - role: eMultimedia
4.573 [INFO]  RSAggregatorDeviceEnum::UpdateAvailableDevices
4.573 [INFO]  AsioHelpers::FindDrivers
4.573 [INFO]    Creative SB/SBX AE DSD ASIO Device
4.573 [INFO]    Creative SB/SBX AE series ASIO Device
4.574 [INFO]    Creative SBX AE series ASIO Device
4.574 [INFO]  RSAsioDeviceEnum::UpdateAvailableDevices - output requesting ASIO driver: Focusrite USB ASIO
4.574 [ERROR]  RSAsioDeviceEnum::UpdateAvailableDevices - failed.
4.574 [INFO]  DebugDeviceEnum::UpdateAvailableDevices - 0 render devices, 0 capture devices
4.574 [INFO]    hr: 80070490
4.574 [INFO]    *ppEndpoint: 00000000
4.574 [INFO]  DebugDeviceEnum::GetDefaultAudioEndpoint - dataFlow: eCapture - role: eMultimedia
4.574 [INFO]    hr: 80070490
4.574 [INFO]    *ppEndpoint: 00000000
4.574 [INFO]  DebugDeviceEnum::EnumAudioEndpoints - dataFlow: eAll - dwStateMask: 1
4.574 [INFO]    hr: S_OK
4.574 [INFO]    *ppDevices: 12DEE2D8
4.581 [INFO]  DebugDeviceEnum::RegisterEndpointNotificationCallback
9.709 [INFO]  DebugDeviceEnum::UnregisterEndpointNotificationCallback
9.710 [INFO]  DebugDeviceEnum::UnregisterEndpointNotificationCallback
9.893 [INFO]   - Wrapper DLL unloaded

i have set the output to 48khz and exclusive mode = 1.

[Config]
EnableWasapiOutputs=0
EnableWasapiInputs=0
EnableAsio=1

[Asio]
; available buffer size modes:
;    driver - respect buffer size setting set in the driver
;    host   - use a buffer size as close as possible as that requested by the host application
;    custom - use the buffer size specified in CustomBufferSize field
BufferSizeMode=custom
CustomBufferSize=48

[Asio.Output]
Driver=Focusrite USB ASIO
BaseChannel=0
AltBaseChannel=
EnableSoftwareEndpointVolumeControl=1
EnableSoftwareMasterVolumeControl=1
SoftwareMasterVolumePercent=100

[Asio.Input.0]
Driver=
Channel=0
EnableSoftwareEndpointVolumeControl=1
EnableSoftwareMasterVolumeControl=1
SoftwareMasterVolumePercent=100

[Asio.Input.1]
Driver=
Channel=1
EnableSoftwareEndpointVolumeControl=1
EnableSoftwareMasterVolumeControl=1
SoftwareMasterVolumePercent=100

[Asio.Input.Mic]
Driver=
Channel=1
EnableSoftwareEndpointVolumeControl=1
EnableSoftwareMasterVolumeControl=1
SoftwareMasterVolumePercent=100

i would appreciate any help, because now i am lost ;)

mdias commented 3 years ago

You don't seem to have the ASIO driver installed for your focusrite device. You need to install that.

damnms commented 3 years ago

Thanks, i was not aware that i have to install something special for that. On the focusrite homepage i was not able to find an asio driver, just the regular usb driver (guess thats also the one which is installed by default when plugging in the device to my windows 10 workstation?). Can you tell me where i can find that asio driver?

mdias commented 3 years ago

The USB driver should contain the ASIO driver. And no, it's not the same as the default plug & play driver from windows.

damnms commented 3 years ago

thanks, you are right. i installed that driver and now its recognized. unfortunately my guitar is not detected :/

i used a regular 3.5" jack cable to connect the guitar with my 2i2. in direct monitor mode i can hear my guitar through my speakers, so guess thats ok.

0.000 [INFO]   - Wrapper DLL loaded (v0.5.5)
0.000 [INFO]  PatchOriginalCode
0.448 [INFO]  Patching CoCreateInstance
0.448 [INFO]  Patch_CallAbsoluteAddress - num locations: 5
0.448 [INFO]  Patching call at 01C5AA85
0.448 [INFO]  Patching call at 01F03B6E
0.448 [INFO]  Patching call at 01F5C681
0.448 [INFO]  Patching call at 01FAEF75
0.448 [INFO]  Patching call at 01FAF40D
0.448 [INFO]  Patching PortAudio MarshalStreamComPointers
0.448 [INFO]  Patch_CallRelativeAddress - num locations: 1
0.448 [INFO]  Patching call at 01F03059
0.448 [INFO]  Patching PortAudio UnmarshalStreamComPointers
0.448 [INFO]  Patch_CallRelativeAddress - num locations: 1
0.448 [INFO]  Patching call at 01F0310E
0.461 [INFO]  Patched_CoCreateInstance called: IID_IMMDeviceEnumerator
0.461 [INFO]  DebugDeviceEnum::RegisterEndpointNotificationCallback
0.462 [INFO]  Patched_CoCreateInstance called: IID_IMMDeviceEnumerator
0.462 [INFO]  DebugDeviceEnum::GetDefaultAudioEndpoint - dataFlow: eRender - role: eMultimedia
0.462 [INFO]  RSAggregatorDeviceEnum::UpdateAvailableDevices
0.462 [INFO]  AsioHelpers::FindDrivers
0.462 [INFO]    Creative SB/SBX AE DSD ASIO Device
0.462 [INFO]    Creative SB/SBX AE series ASIO Device
0.462 [INFO]    Creative SBX AE series ASIO Device
0.462 [INFO]    Focusrite USB ASIO
0.462 [INFO]  RSAsioDeviceEnum::UpdateAvailableDevices - output requesting ASIO driver: Focusrite USB ASIO
0.462 [INFO]  Creating AsioSharedHost - dll: c:\program files\focusriteusb\focusriteusbasio32.dll
0.466 [INFO]    ASIO input channels info:
0.466 [INFO]      0 - active: 0, channel: 0, group: 0, isInput: 1, type: ASIOSTInt32LSB, name: Input 1
0.466 [INFO]      1 - active: 0, channel: 1, group: 0, isInput: 1, type: ASIOSTInt32LSB, name: Input 2
0.466 [INFO]    ASIO output channels info:
0.466 [INFO]      0 - active: 0, channel: 0, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: Output 1
0.466 [INFO]      1 - active: 0, channel: 1, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: Output 2
0.466 [INFO]  RSAsioDeviceEnum::UpdateAvailableDevices - OK
0.466 [INFO]  DebugDeviceEnum::UpdateAvailableDevices - 1 render devices, 0 capture devices
0.466 [INFO]    hr: S_OK
0.466 [INFO]    *ppEndpoint: 12E10FB0
0.466 [INFO]  DebugDeviceEnum::GetDefaultAudioEndpoint - dataFlow: eCapture - role: eMultimedia
0.466 [INFO]    hr: 80070490
0.466 [INFO]    *ppEndpoint: 00000000
0.466 [INFO]  DebugDeviceEnum::EnumAudioEndpoints - dataFlow: eAll - dwStateMask: 1
0.466 [INFO]    hr: S_OK
0.466 [INFO]    *ppDevices: 12D66848
0.466 [INFO]  {ASIO Out} DebugWrapperDevice::OpenPropertyStore - stgmAccess: 0
0.466 [INFO]  {ASIO Out} DebugWrapperDevicePropertyStore::GetCount
0.466 [INFO]  {ASIO Out} DebugWrapperDevicePropertyStore::GetAt - iProp: 0
0.466 [INFO]  {ASIO Out} DebugWrapperDevicePropertyStore::GetAt - iProp: 1
0.466 [INFO]  {ASIO Out} DebugWrapperDevice::QueryInterface - riid: IID_IMMEndpoint
0.466 [INFO]  {ASIO Out} DebugWrapperEndpoint::GetDataFlow
0.466 [INFO]    *pDataFlow: eRender
0.466 [INFO]  {ASIO Out} DebugWrapperDevice::Activate - Activate iid: IID_IAudioClient dwClsCtx: 1
0.466 [INFO]  {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::GetDevicePeriod
0.477 [INFO]  {ASIO Out} DebugWrapperDevice::Activate - Activate iid: IID_IAudioClient dwClsCtx: 17
0.477 [INFO]  {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::IsFormatSupported - ShareMode: Exclusive
0.477 [ERROR]    rejecting IEEE Float as it's incompatible with current ASIO sample type ASIOSTInt32LSB
0.477 [ERROR]    failed to initialize asio driver with requested format
0.477 [INFO]    hr: AUDCLNT_E_UNSUPPORTED_FORMAT
0.477 [INFO]  {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::IsFormatSupported - ShareMode: Exclusive
0.477 [ERROR]    rejecting IEEE Float as it's incompatible with current ASIO sample type ASIOSTInt32LSB
0.477 [ERROR]    failed to initialize asio driver with requested format
0.477 [INFO]    hr: AUDCLNT_E_UNSUPPORTED_FORMAT
0.477 [INFO]  {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::IsFormatSupported - ShareMode: Exclusive
0.477 [INFO]  {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::Initialize - ShareMode: Exclusive Flags: 40000 bufferDuration: 3ms periodicity: 3ms
0.477 [INFO]  {ASIO Out} RSAsioAudioClient::Initialize - host requested buffer duration: 3ms (144 frames)
0.477 [INFO]  {ASIO Out} WAVEFORMATEX
  wFormatTag: fffe
  nChannels: 2
  nSamplesPerSec: 48000
  nAvgBytesPerSec: 384000
  nBlockAlign: 8
  wBitsPerSample: 32
  cbSize: 22
  ext.SubFormat: KSDATAFORMAT_SUBTYPE_PCM
  ext.Samples: 24
  ext.dwChannelMask: 3
0.477 [INFO]  {ASIO Out} RSAsioAudioClient::Initialize - actual buffer duration: 1ms (48 frames)
0.477 [INFO]  AsioSharedHost::Setup - startCount: 0
0.477 [INFO]    post output ready: 1
0.477 [INFO]    ASIOBufferSize - min: 16 max: 1024 preferred: 48 granularity: 16
0.477 [INFO]    Creating ASIO buffers (2 out, 2 in)...
0.477 [INFO]  AsioSharedHost::AsioCalback_asioMessage - selector: 7 value: 0 | returning: 0
0.477 [INFO]  AsioSharedHost::AsioCalback_asioMessage - selector: 2 value: 0 | returning: 1
0.477 [INFO]  AsioSharedHost::AsioCalback_asioMessage - selector: 1 value: 3 | returning: 0
0.477 [INFO]  AsioSharedHost::AsioCalback_asioMessage - selector: 1 value: 5 | returning: 0
0.477 [INFO]  AsioSharedHost::AsioCalback_asioMessage - selector: 1 value: 4 | returning: 0
0.477 [INFO]  AsioSharedHost::AsioCalback_asioMessage - selector: 1 value: 6 | returning: 0
0.477 [INFO]  AsioSharedHost::AsioCalback_asioMessage - selector: 1 value: 15 | returning: 0
0.477 [INFO]  {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::GetBufferSize
0.477 [INFO]    *pNumBufferFrames: 48
0.477 [INFO]  {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::GetStreamLatency
0.477 [INFO]    latency: 2ms
0.478 [INFO]  {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::GetService - riid: IID_IAudioRenderClient
0.478 [INFO]    returning render client
0.478 [INFO]  DebugDeviceEnum::RegisterEndpointNotificationCallback
0.478 [INFO]  Patched_PortAudio_MarshalStreamComPointers
0.479 [INFO]  Patched_PortAudio_UnmarshalStreamComPointers
0.479 [INFO]  {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::SetEventHandle
0.479 [INFO]  {ASIO Out} DebugWrapperRenderClient::GetBuffer NumFramesRequested: 48
0.479 [INFO]  {ASIO Out} DebugWrapperRenderClient::ReleaseBuffer NumFramesWritten: 48
0.479 [INFO]  {ASIO Out} RSAsioAudioClient::SwapBuffers
0.479 [INFO]  {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::Start
0.479 [INFO]  AsioSharedHost::Start - startCount: 0
0.479 [INFO]    Starting ASIO stream...
0.498 [INFO]  Focusrite USB ASIO - AsioSharedHost::AsioCalback_bufferSwitch - buffer switch 1
0.498 [INFO]  {ASIO Out} DebugWrapperRenderClient::GetBuffer NumFramesRequested: 48
0.498 [INFO]  {ASIO Out} DebugWrapperRenderClient::ReleaseBuffer NumFramesWritten: 48
0.498 [INFO]  {ASIO Out} RSAsioAudioClient::SwapBuffers
0.498 [INFO]  Focusrite USB ASIO - AsioSharedHost::AsioCalback_bufferSwitch - buffer switch 2
0.499 [INFO]  {ASIO Out} DebugWrapperRenderClient::GetBuffer NumFramesRequested: 48
0.499 [INFO]  {ASIO Out} DebugWrapperRenderClient::ReleaseBuffer NumFramesWritten: 48
0.499 [INFO]  {ASIO Out} RSAsioAudioClient::SwapBuffers
0.499 [INFO]  Focusrite USB ASIO - AsioSharedHost::AsioCalback_bufferSwitch - buffer switch 3 (not logging upcoming switches)
66.590 [INFO]  DebugDeviceEnum::UnregisterEndpointNotificationCallback
66.590 [INFO]  DebugDeviceEnum::UnregisterEndpointNotificationCallback
66.590 [INFO]  {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::Stop
66.590 [INFO]  AsioSharedHost::Stop - startCount: 1
66.590 [INFO]  AsioSharedHost::Stop  stopping ASIO stream
66.598 [INFO]  Destroying AsioSharedHost - dll: c:\program files\focusriteusb\focusriteusbasio32.dll
66.790 [INFO]   - Wrapper DLL unloaded
mdias commented 3 years ago

You have your Driver= sections for input all blank. Check the readme on the main page of the project and click on the Focusrite Scarlett 2i2 device, it should contain a sample config file.

damnms commented 3 years ago

works, thanks!