mdias / rs_asio

ASIO for Rocksmith 2014
MIT License
1.01k stars 96 forks source link

Distorted sound #323

Closed serdartas closed 1 year ago

serdartas commented 1 year ago

Rocksmith 2014 stopped finding audio device all of a sudden. I think it was due to a windows update. I've downloaded the latest version of rs_asio, uninstalled and re-installed Rocksmith 2014 from Steam. Followed steps from README.MD. Sound came back but it's just choppy, distorted sound from speakers. When I plug the guitar in and play, you can barely tell there's sound coming out of it. Needless to tell everything work as they should when I use Cubase, Amplitube or such other software. I went through forums to figure out the issue, almost all of them suggests setting ExclusiveMode to zero, which won't work with RS_ASIO.

Probably my problem has nothing to do with RS_ASIO, but since I'm having it, someone else using RS_ASIO might be having it as well. Any suggestion is much appreciated.

Here are some more details for debugging; AMD Ryzen 9 5950X 16-Core Processor, 128 GB RAM, Focusrite Scarlett 2i2 (3rd Gen) 64-bit operating system, x64-based processor Windows 11 Pro 21H2 22000.1098 Scarlett 2i2 set to 48 kHz sample mode

RS_ASIO.ini `# for "EnableWasapiOutputs" you can use -1 to have a message prompting

to use either WASAPI or ASIO for output every time you boot the game

[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=driver CustomBufferSize=

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

[Asio.Input.0] Driver=Focusrite USB ASIO Channel=1 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`

Rocksmith.ini [Audio] EnableMicrophone=0 ExclusiveMode=1 LatencyBuffer=4 ForceDefaultPlaybackDevice= ForceWDM=0 ForceDirectXSink=0 DumpAudioLog=0 MaxOutputBufferSize=0 RealToneCableOnly=0 MonoToStereoChannel=0 Win32UltraLowLatencyMode=1 [Renderer.Win32] ShowGamepadUI=0 ScreenWidth=0 ScreenHeight=0 Fullscreen=1 VisualQuality=1 RenderingWidth=0 RenderingHeight=0 EnablePostEffects=1 EnableShadows=1 EnableHighResScope=1 EnableDepthOfField=1 EnablePerPixelLighting=1 MsaaSamples=4 DisableBrowser=0 [Net] UseProxy=1 [Global] Version=1

RS_ASIO-log.txt 0.000 [INFO] - Wrapper DLL loaded (v0.6.3) 0.000 [INFO] PatchOriginalCode 0.027 [INFO] image crc32: 0xd1b38fcb 0.115 [INFO] Patching CoCreateInstance 0.115 [INFO] Patch_CallAbsoluteIndirectAddress - num locations: 2 0.116 [INFO] Patching call at 00C02DBD 0.116 [INFO] Patching call at 00E75278 0.116 [INFO] Patching PortAudio MarshalStreamComPointers 0.116 [INFO] Patch_CallRelativeAddress - num locations: 1 0.116 [INFO] Patching call at 00E7483F 0.116 [INFO] Patching PortAudio UnmarshalStreamComPointers 0.116 [INFO] Patch_CallRelativeAddress - num locations: 1 0.116 [INFO] Patching call at 00E748F4 0.116 [INFO] Patching Two Guitar Tones Connected Message Box (num locations: 1) 0.116 [INFO] Patching bytes at 007C0C5F 0.117 [INFO] Patched_CoCreateInstance called: IID_IMMDeviceEnumerator 0.118 [INFO] DebugDeviceEnum::GetDefaultAudioEndpoint - dataFlow: eRender - role: eMultimedia 0.118 [INFO] RSAggregatorDeviceEnum::UpdateAvailableDevices 0.118 [INFO] AsioHelpers::FindDrivers 0.118 [INFO] ASIO4ALL v2 0.118 [INFO] Focusrite Thunderbolt ASIO 0.118 [INFO] Focusrite USB ASIO 0.118 [INFO] Voicemeeter Virtual ASIO 0.118 [INFO] RSAsioDeviceEnum::UpdateAvailableDevices - output requesting ASIO driver: Focusrite USB ASIO 0.119 [INFO] Creating AsioSharedHost - dll: c:\program files\focusrite\drivers\focusriteusbasio32.dll 0.123 [INFO] ASIO input channels info: 0.123 [INFO] 0 - active: 0, channel: 0, group: 0, isInput: 1, type: ASIOSTInt32LSB, name: Input 1 0.123 [INFO] 1 - active: 0, channel: 1, group: 0, isInput: 1, type: ASIOSTInt32LSB, name: Input 2 0.123 [INFO] ASIO output channels info: 0.123 [INFO] 0 - active: 0, channel: 0, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: Output 1 0.123 [INFO] 1 - active: 0, channel: 1, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: Output 2 0.123 [INFO] RSAsioDeviceEnum::UpdateAvailableDevices - OK 0.123 [INFO] RSAsioDeviceEnum::UpdateAvailableDevices - input[0] requesting ASIO driver: Focusrite USB ASIO 0.123 [INFO] RSAsioDeviceEnum::UpdateAvailableDevices - OK 0.123 [INFO] DebugDeviceEnum::UpdateAvailableDevices - 1 render devices, 1 capture devices 0.123 [INFO] hr: S_OK 0.123 [INFO] *ppEndpoint: 0D08E470 0.123 [INFO] DebugDeviceEnum::GetDefaultAudioEndpoint - dataFlow: eCapture - role: eMultimedia 0.123 [INFO] hr: S_OK 0.123 [INFO] *ppEndpoint: 0D08E530 0.123 [INFO] DebugDeviceEnum::EnumAudioEndpoints - dataFlow: eAll - dwStateMask: 1 0.123 [INFO] hr: S_OK 0.123 [INFO] *ppDevices: 1891ABE8 0.123 [INFO] {ASIO Out} DebugWrapperDevice::OpenPropertyStore - stgmAccess: 0 0.123 [INFO] {ASIO Out} DebugWrapperDevicePropertyStore::GetCount 0.123 [INFO] *cProps: 2 0.123 [INFO] {ASIO Out} DebugWrapperDevice::QueryInterface - riid: IID_IMMEndpoint 0.123 [INFO] {ASIO Out} DebugWrapperEndpoint::GetDataFlow 0.123 [INFO] *pDataFlow: eRender 0.123 [INFO] {ASIO Out} DebugWrapperDevice::Activate - Activate iid: IID_IAudioClient dwClsCtx: 1 0.123 [INFO] {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::GetDevicePeriod 0.123 [INFO] {ASIO Out} RSAsioAudioClient::~RSAsioAudioClient 0.123 [INFO] {ASIO IN 0} DebugWrapperDevice::OpenPropertyStore - stgmAccess: 0 0.123 [INFO] {ASIO IN 0} DebugWrapperDevicePropertyStore::GetCount 0.123 [INFO] *cProps: 5 0.123 [INFO] {ASIO IN 0} DebugWrapperDevice::QueryInterface - riid: IID_IMMEndpoint 0.123 [INFO] {ASIO IN 0} DebugWrapperEndpoint::GetDataFlow 0.123 [INFO] *pDataFlow: eCapture 0.123 [INFO] {ASIO IN 0} DebugWrapperDevice::Activate - Activate iid: IID_IAudioClient dwClsCtx: 1 0.123 [INFO] {ASIO IN 0} DebugWrapperAudioClient<struct IAudioClient3>::GetDevicePeriod 0.123 [INFO] {ASIO IN 0} RSAsioAudioClient::~RSAsioAudioClient 0.141 [INFO] {ASIO Out} DebugWrapperDevice::Activate - Activate iid: IID_IAudioClient dwClsCtx: 17 0.141 [INFO] {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::IsFormatSupported - ShareMode: Shared 0.141 [ERROR] shared mode is not supported 0.141 [INFO] hr: AUDCLNT_E_UNSUPPORTED_FORMAT 0.141 [INFO] {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::IsFormatSupported - ShareMode: Shared 0.141 [ERROR] shared mode is not supported 0.141 [INFO] hr: AUDCLNT_E_UNSUPPORTED_FORMAT 0.141 [INFO] {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::IsFormatSupported - ShareMode: Shared 0.141 [ERROR] shared mode is not supported 0.141 [INFO] hr: AUDCLNT_E_UNSUPPORTED_FORMAT 0.141 [INFO] {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::IsFormatSupported - ShareMode: Shared 0.141 [ERROR] shared mode is not supported 0.141 [INFO] hr: AUDCLNT_E_UNSUPPORTED_FORMAT 0.141 [INFO] {ASIO Out} RSAsioAudioClient::~RSAsioAudioClient 0.141 [INFO] {ASIO Out} DebugWrapperDevice::Activate - Activate iid: IID_IAudioClient dwClsCtx: 17 0.141 [INFO] {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::IsFormatSupported - ShareMode: Shared 0.141 [ERROR] shared mode is not supported 0.141 [INFO] hr: AUDCLNT_E_UNSUPPORTED_FORMAT 0.141 [INFO] {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::IsFormatSupported - ShareMode: Shared 0.141 [ERROR] shared mode is not supported 0.141 [INFO] hr: AUDCLNT_E_UNSUPPORTED_FORMAT 0.141 [INFO] {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::IsFormatSupported - ShareMode: Shared 0.141 [ERROR] shared mode is not supported 0.141 [INFO] hr: AUDCLNT_E_UNSUPPORTED_FORMAT 0.141 [INFO] {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::IsFormatSupported - ShareMode: Shared 0.141 [ERROR] shared mode is not supported 0.141 [INFO] hr: AUDCLNT_E_UNSUPPORTED_FORMAT 0.141 [INFO] {ASIO Out} RSAsioAudioClient::~RSAsioAudioClient 0.141 [INFO] {ASIO Out} DebugWrapperDevice::Activate - Activate iid: IID_IAudioClient dwClsCtx: 17 0.141 [INFO] {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::IsFormatSupported - ShareMode: Shared 0.141 [ERROR] shared mode is not supported 0.141 [INFO] hr: AUDCLNT_E_UNSUPPORTED_FORMAT 0.141 [INFO] {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::IsFormatSupported - ShareMode: Shared 0.141 [ERROR] shared mode is not supported 0.141 [INFO] hr: AUDCLNT_E_UNSUPPORTED_FORMAT 0.141 [INFO] {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::IsFormatSupported - ShareMode: Shared 0.141 [ERROR] shared mode is not supported 0.141 [INFO] hr: AUDCLNT_E_UNSUPPORTED_FORMAT 0.141 [INFO] {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::IsFormatSupported - ShareMode: Shared 0.141 [ERROR] shared mode is not supported 0.141 [INFO] hr: AUDCLNT_E_UNSUPPORTED_FORMAT 0.141 [INFO] {ASIO Out} RSAsioAudioClient::~RSAsioAudioClient 0.141 [INFO] Destroying AsioSharedHost - dll: c:\program files\focusrite\drivers\focusriteusbasio32.dll 3.425 [INFO] Patched_CoCreateInstance called: IID_IMMDeviceEnumerator 3.425 [INFO] DebugDeviceEnum::GetDefaultAudioEndpoint - dataFlow: eRender - role: eMultimedia 3.425 [INFO] RSAggregatorDeviceEnum::UpdateAvailableDevices 3.425 [INFO] AsioHelpers::FindDrivers 3.425 [INFO] ASIO4ALL v2 3.425 [INFO] Focusrite Thunderbolt ASIO 3.425 [INFO] Focusrite USB ASIO 3.425 [INFO] Voicemeeter Virtual ASIO 3.425 [INFO] RSAsioDeviceEnum::UpdateAvailableDevices - output requesting ASIO driver: Focusrite USB ASIO 3.425 [INFO] Creating AsioSharedHost - dll: c:\program files\focusrite\drivers\focusriteusbasio32.dll 3.429 [INFO] ASIO input channels info: 3.429 [INFO] 0 - active: 0, channel: 0, group: 0, isInput: 1, type: ASIOSTInt32LSB, name: Input 1 3.429 [INFO] 1 - active: 0, channel: 1, group: 0, isInput: 1, type: ASIOSTInt32LSB, name: Input 2 3.429 [INFO] ASIO output channels info: 3.429 [INFO] 0 - active: 0, channel: 0, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: Output 1 3.429 [INFO] 1 - active: 0, channel: 1, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: Output 2 3.429 [INFO] RSAsioDeviceEnum::UpdateAvailableDevices - OK 3.429 [INFO] RSAsioDeviceEnum::UpdateAvailableDevices - input[0] requesting ASIO driver: Focusrite USB ASIO 3.429 [INFO] RSAsioDeviceEnum::UpdateAvailableDevices - OK 3.429 [INFO] DebugDeviceEnum::UpdateAvailableDevices - 1 render devices, 1 capture devices 3.429 [INFO] hr: S_OK 3.429 [INFO] *ppEndpoint: 0468C4C0 3.429 [INFO] DebugDeviceEnum::GetDefaultAudioEndpoint - dataFlow: eCapture - role: eMultimedia 3.429 [INFO] hr: S_OK 3.429 [INFO] *ppEndpoint: 0468C430 3.429 [INFO] DebugDeviceEnum::EnumAudioEndpoints - dataFlow: eAll - dwStateMask: 1 3.429 [INFO] hr: S_OK 3.429 [INFO] *ppDevices: 1891AD28 3.429 [INFO] {ASIO Out} DebugWrapperDevice::OpenPropertyStore - stgmAccess: 0 3.429 [INFO] {ASIO Out} DebugWrapperDevice::QueryInterface - riid: IID_IMMEndpoint 3.429 [INFO] {ASIO Out} DebugWrapperEndpoint::GetDataFlow 3.429 [INFO] *pDataFlow: eRender 3.429 [INFO] {ASIO IN 0} DebugWrapperDevice::OpenPropertyStore - stgmAccess: 0 3.429 [INFO] {ASIO IN 0} DebugWrapperDevice::QueryInterface - riid: IID_IMMEndpoint 3.429 [INFO] {ASIO IN 0} DebugWrapperEndpoint::GetDataFlow 3.429 [INFO] *pDataFlow: eCapture 3.436 [INFO] DebugDeviceEnum::RegisterEndpointNotificationCallback 8.634 [INFO] DebugDeviceEnum::UnregisterEndpointNotificationCallback 8.634 [INFO] Destroying AsioSharedHost - dll: c:\program files\focusrite\drivers\focusriteusbasio32.dll 8.768 [INFO] - Wrapper DLL unloaded

mdias commented 1 year ago

The log you pasted was created with ExclusiveMode=0 and therefore won't show the issue.

I recommend you re-install the Focusrite ASIO driver in case a windows update messed it up. If that still doesn't fix it, please post the log again but ensure the log was generated with ExclusiveMode=1.

serdartas commented 1 year ago

Hi @mdias thank you for the response. I have re-installed Focusrite ASIO driver. Restarted the computer. Tested audio on Cubase, it's ok. Set ExclusiveMode to 1 and tried. Still same distorted noise.

Rocksmith.ini [Audio] EnableMicrophone=0 ExclusiveMode=1 LatencyBuffer=4 ForceDefaultPlaybackDevice= ForceWDM=0 ForceDirectXSink=0 DumpAudioLog=0 MaxOutputBufferSize=0 RealToneCableOnly=0 MonoToStereoChannel=0 Win32UltraLowLatencyMode=1 [Renderer.Win32] ShowGamepadUI=0 ScreenWidth=0 ScreenHeight=0 Fullscreen=1 VisualQuality=1 RenderingWidth=0 RenderingHeight=0 EnablePostEffects=1 EnableShadows=1 EnableHighResScope=1 EnableDepthOfField=1 EnablePerPixelLighting=1 MsaaSamples=4 DisableBrowser=0 [Net] UseProxy=1 [Global] Version=1

RS_ASIO-log.txt 0.000 [INFO] - Wrapper DLL loaded (v0.6.3) 0.000 [INFO] PatchOriginalCode 0.026 [INFO] image crc32: 0xd1b38fcb 0.116 [INFO] Patching CoCreateInstance 0.116 [INFO] Patch_CallAbsoluteIndirectAddress - num locations: 2 0.116 [INFO] Patching call at 00C02DBD 0.116 [INFO] Patching call at 00E75278 0.116 [INFO] Patching PortAudio MarshalStreamComPointers 0.116 [INFO] Patch_CallRelativeAddress - num locations: 1 0.116 [INFO] Patching call at 00E7483F 0.116 [INFO] Patching PortAudio UnmarshalStreamComPointers 0.116 [INFO] Patch_CallRelativeAddress - num locations: 1 0.116 [INFO] Patching call at 00E748F4 0.116 [INFO] Patching Two Guitar Tones Connected Message Box (num locations: 1) 0.116 [INFO] Patching bytes at 007C0C5F 0.118 [INFO] Patched_CoCreateInstance called: IID_IMMDeviceEnumerator 0.119 [INFO] DebugDeviceEnum::GetDefaultAudioEndpoint - dataFlow: eRender - role: eMultimedia 0.119 [INFO] RSAggregatorDeviceEnum::UpdateAvailableDevices 0.119 [INFO] AsioHelpers::FindDrivers 0.119 [INFO] ASIO4ALL v2 0.119 [INFO] Focusrite Thunderbolt ASIO 0.119 [INFO] Focusrite USB ASIO 0.119 [INFO] Voicemeeter Virtual ASIO 0.119 [INFO] RSAsioDeviceEnum::UpdateAvailableDevices - output requesting ASIO driver: Focusrite USB ASIO 0.119 [INFO] Creating AsioSharedHost - dll: c:\program files\focusrite\drivers\focusriteusbasio32.dll 0.124 [INFO] ASIO input channels info: 0.124 [INFO] 0 - active: 0, channel: 0, group: 0, isInput: 1, type: ASIOSTInt32LSB, name: Input 1 0.124 [INFO] 1 - active: 0, channel: 1, group: 0, isInput: 1, type: ASIOSTInt32LSB, name: Input 2 0.124 [INFO] ASIO output channels info: 0.124 [INFO] 0 - active: 0, channel: 0, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: Output 1 0.124 [INFO] 1 - active: 0, channel: 1, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: Output 2 0.124 [INFO] RSAsioDeviceEnum::UpdateAvailableDevices - OK 0.124 [INFO] RSAsioDeviceEnum::UpdateAvailableDevices - input[0] requesting ASIO driver: Focusrite USB ASIO 0.124 [INFO] RSAsioDeviceEnum::UpdateAvailableDevices - OK 0.124 [INFO] DebugDeviceEnum::UpdateAvailableDevices - 1 render devices, 1 capture devices 0.124 [INFO] hr: S_OK 0.124 [INFO] *ppEndpoint: 0D102318 0.124 [INFO] DebugDeviceEnum::GetDefaultAudioEndpoint - dataFlow: eCapture - role: eMultimedia 0.124 [INFO] hr: S_OK 0.124 [INFO] *ppEndpoint: 0D1025E8 0.124 [INFO] DebugDeviceEnum::EnumAudioEndpoints - dataFlow: eAll - dwStateMask: 1 0.124 [INFO] hr: S_OK 0.124 [INFO] *ppDevices: 188EA758 0.124 [INFO] {ASIO Out} DebugWrapperDevice::OpenPropertyStore - stgmAccess: 0 0.124 [INFO] {ASIO Out} DebugWrapperDevicePropertyStore::GetCount 0.124 [INFO] *cProps: 2 0.124 [INFO] {ASIO Out} DebugWrapperDevice::QueryInterface - riid: IID_IMMEndpoint 0.124 [INFO] {ASIO Out} DebugWrapperEndpoint::GetDataFlow 0.124 [INFO] *pDataFlow: eRender 0.124 [INFO] {ASIO Out} DebugWrapperDevice::Activate - Activate iid: IID_IAudioClient dwClsCtx: 1 0.124 [INFO] {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::GetDevicePeriod 0.124 [INFO] {ASIO Out} RSAsioAudioClient::~RSAsioAudioClient 0.124 [INFO] {ASIO IN 0} DebugWrapperDevice::OpenPropertyStore - stgmAccess: 0 0.124 [INFO] {ASIO IN 0} DebugWrapperDevicePropertyStore::GetCount 0.124 [INFO] *cProps: 5 0.124 [INFO] {ASIO IN 0} DebugWrapperDevice::QueryInterface - riid: IID_IMMEndpoint 0.124 [INFO] {ASIO IN 0} DebugWrapperEndpoint::GetDataFlow 0.124 [INFO] *pDataFlow: eCapture 0.124 [INFO] {ASIO IN 0} DebugWrapperDevice::Activate - Activate iid: IID_IAudioClient dwClsCtx: 1 0.124 [INFO] {ASIO IN 0} DebugWrapperAudioClient<struct IAudioClient3>::GetDevicePeriod 0.124 [INFO] {ASIO IN 0} RSAsioAudioClient::~RSAsioAudioClient 0.140 [INFO] {ASIO Out} DebugWrapperDevice::Activate - Activate iid: IID_IAudioClient dwClsCtx: 17 0.140 [INFO] {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::IsFormatSupported - ShareMode: Exclusive 0.140 [INFO] rejecting IEEE Float as it's incompatible with current ASIO sample type ASIOSTInt32LSB 0.141 [INFO] requested format is not supported 0.141 [INFO] hr: AUDCLNT_E_UNSUPPORTED_FORMAT 0.141 [INFO] {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::IsFormatSupported - ShareMode: Exclusive 0.141 [INFO] rejecting IEEE Float as it's incompatible with current ASIO sample type ASIOSTInt32LSB 0.141 [INFO] requested format is not supported 0.141 [INFO] hr: AUDCLNT_E_UNSUPPORTED_FORMAT 0.141 [INFO] {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::IsFormatSupported - ShareMode: Exclusive 0.141 [INFO] {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::Initialize - ShareMode: Exclusive Flags: 40000 bufferDuration: 3ms periodicity: 3ms 0.141 [INFO] {ASIO Out} RSAsioAudioClient::Initialize - host requested buffer duration: 3ms (144 frames) 0.141 [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.141 [INFO] {ASIO Out} RSAsioAudioClient::Initialize - actual buffer duration: 1ms (64 frames) 0.141 [INFO] AsioSharedHost::Setup - startCount: 0 0.141 [INFO] post output ready: 1 0.141 [INFO] ASIOBufferSize - min: 16 max: 1024 preferred: 64 granularity: 16 0.141 [INFO] Creating ASIO buffers (2 out, 2 in)... 0.141 [INFO] AsioSharedHost::AsioCalback_asioMessage - selector: 7 value: 0 | returning: 0 0.141 [INFO] AsioSharedHost::AsioCalback_asioMessage - selector: 2 value: 0 | returning: 1 0.141 [INFO] AsioSharedHost::AsioCalback_asioMessage - selector: 1 value: 3 | returning: 0 0.141 [INFO] AsioSharedHost::AsioCalback_asioMessage - selector: 1 value: 5 | returning: 0 0.141 [INFO] AsioSharedHost::AsioCalback_asioMessage - selector: 1 value: 4 | returning: 0 0.141 [INFO] AsioSharedHost::AsioCalback_asioMessage - selector: 1 value: 6 | returning: 0 0.141 [INFO] AsioSharedHost::AsioCalback_asioMessage - selector: 1 value: 15 | returning: 0 0.141 [INFO] {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::GetBufferSize 0.141 [INFO] *pNumBufferFrames: 64 0.141 [INFO] {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::GetStreamLatency 0.141 [INFO] latency: 3ms 0.141 [INFO] {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::GetService - riid: IID_IAudioRenderClient 0.141 [INFO] returning render client 0.141 [INFO] DebugDeviceEnum::RegisterEndpointNotificationCallback 0.142 [INFO] Patched_PortAudio_MarshalStreamComPointers 0.142 [INFO] Patched_PortAudio_UnmarshalStreamComPointers 0.142 [INFO] {ASIO Out} DebugWrapperAudioClient3::QueryInterface riid: {F2D67F48-1977-4991-A3FC-A093835A7DC2} 0.142 [INFO] {ASIO Out} DebugWrapperAudioClient2<struct IAudioClient3>::QueryInterface riid: {F2D67F48-1977-4991-A3FC-A093835A7DC2} 0.142 [INFO] {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::QueryInterface riid: {F2D67F48-1977-4991-A3FC-A093835A7DC2} 0.142 [INFO] {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::SetEventHandle 0.142 [INFO] {ASIO Out} DebugWrapperRenderClient::GetBuffer NumFramesRequested: 64 0.142 [INFO] {ASIO Out} DebugWrapperRenderClient::ReleaseBuffer NumFramesWritten: 64 0.142 [INFO] {ASIO Out} RSAsioAudioClient::SwapBuffers 0.142 [INFO] {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::Start 0.142 [INFO] AsioSharedHost::Start - enter startCount: 0 0.142 [INFO] Starting ASIO stream... 0.143 [INFO] AsioSharedHost::Start - leave startCount: 1 0.144 [INFO] Focusrite USB ASIO - AsioSharedHost::AsioCalback_bufferSwitch - buffer switch 1 0.144 [INFO] {ASIO Out} DebugWrapperRenderClient::GetBuffer NumFramesRequested: 64 0.144 [INFO] {ASIO Out} DebugWrapperRenderClient::ReleaseBuffer NumFramesWritten: 64 0.144 [INFO] {ASIO Out} RSAsioAudioClient::SwapBuffers 0.146 [INFO] Focusrite USB ASIO - AsioSharedHost::AsioCalback_bufferSwitch - buffer switch 2 0.146 [INFO] Focusrite USB ASIO - AsioSharedHost::AsioCalback_bufferSwitch - buffer switch 3 (not logging upcoming switches) 0.146 [INFO] 0.146 [INFO] {ASIO Out} DebugWrapperRenderClient::GetBuffer NumFramesRequested: 64 {ASIO Out} xrun 0.146 [INFO] {ASIO Out} DebugWrapperRenderClient::ReleaseBuffer NumFramesWritten: 64 0.150 [INFO] {ASIO Out} xrun **_(IMPORTANT- I have removed 26168 identical log entries from here for ease of readibility. They are all {ASIO Out} xrun)_** 26.318 [INFO] {ASIO Out} xrun 26.320 [INFO] {ASIO IN 0} DebugWrapperDevice::Activate - Activate iid: IID_IAudioClient dwClsCtx: 17 26.320 [INFO] {ASIO IN 0} DebugWrapperAudioClient<struct IAudioClient3>::IsFormatSupported - ShareMode: Exclusive 26.320 [INFO] rejecting IEEE Float as it's incompatible with current ASIO sample type ASIOSTInt32LSB 26.320 [INFO] requested format is not supported 26.320 [INFO] hr: AUDCLNT_E_UNSUPPORTED_FORMAT 26.320 [INFO] {ASIO IN 0} DebugWrapperAudioClient<struct IAudioClient3>::IsFormatSupported - ShareMode: Exclusive 26.320 [INFO] rejecting IEEE Float as it's incompatible with current ASIO sample type ASIOSTInt32LSB 26.320 [INFO] requested format is not supported 26.320 [INFO] hr: AUDCLNT_E_UNSUPPORTED_FORMAT 26.320 [INFO] {ASIO IN 0} DebugWrapperAudioClient<struct IAudioClient3>::IsFormatSupported - ShareMode: Exclusive 26.320 [INFO] rejecting IEEE Float as it's incompatible with current ASIO sample type ASIOSTInt32LSB 26.320 [INFO] requested format is not supported 26.320 [INFO] hr: AUDCLNT_E_UNSUPPORTED_FORMAT 26.320 [INFO] {ASIO IN 0} DebugWrapperAudioClient<struct IAudioClient3>::IsFormatSupported - ShareMode: Exclusive 26.320 [INFO] {ASIO IN 0} DebugWrapperAudioClient<struct IAudioClient3>::Initialize - ShareMode: Exclusive Flags: 40000 bufferDuration: 3ms periodicity: 3ms 26.320 [INFO] {ASIO IN 0} RSAsioAudioClient::Initialize - host requested buffer duration: 3ms (144 frames) 26.320 [INFO] {ASIO IN 0} 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 26.320 [INFO] {ASIO IN 0} RSAsioAudioClient::Initialize - actual buffer duration: 1ms (64 frames) 26.320 [INFO] AsioSharedHost::Setup - startCount: 1 26.320 [INFO] {ASIO IN 0} DebugWrapperDevice::Activate - Activate iid: IID_IAudioEndpointVolume dwClsCtx: 1 26.321 [INFO] {ASIO IN 0} DebugWrapperAudioClient<struct IAudioClient3>::GetBufferSize 26.321 [INFO] *pNumBufferFrames: 64 26.321 [INFO] {ASIO IN 0} DebugWrapperAudioClient<struct IAudioClient3>::GetStreamLatency 26.321 [INFO] latency: 3ms 26.321 [INFO] {ASIO IN 0} DebugWrapperAudioClient<struct IAudioClient3>::GetService - riid: IID_IAudioCaptureClient 26.321 [INFO] returning capture client 26.321 [INFO] Patched_PortAudio_MarshalStreamComPointers 26.321 [INFO] Patched_PortAudio_UnmarshalStreamComPointers 26.321 [INFO] {ASIO IN 0} DebugWrapperAudioClient3::QueryInterface riid: {F2D67F48-1977-4991-A3FC-A093835A7DC2} 26.321 [INFO] {ASIO IN 0} DebugWrapperAudioClient2<struct IAudioClient3>::QueryInterface riid: {F2D67F48-1977-4991-A3FC-A093835A7DC2} 26.321 [INFO] {ASIO IN 0} DebugWrapperAudioClient<struct IAudioClient3>::QueryInterface riid: {F2D67F48-1977-4991-A3FC-A093835A7DC2} 26.321 [INFO] {ASIO IN 0} DebugWrapperAudioClient<struct IAudioClient3>::SetEventHandle 26.321 [INFO] {ASIO IN 0} DebugWrapperAudioClient<struct IAudioClient3>::Start 26.321 [INFO] AsioSharedHost::Start - enter startCount: 1 26.321 [INFO] AsioSharedHost::Start - leave startCount: 2 26.321 [INFO] {ASIO IN 0} DebugWrapperAudioEndpointVolume::SetMasterVolumeLevelScalar fLevel: 0.17 26.322 [INFO] 26.322 [INFO] {ASIO IN 0} DebugWrapperCaptureClient::GetBuffer {ASIO IN 0} xrun 26.322 [INFO] {ASIO IN 0} RSAsioAudioClient::SwapBuffers 26.322 [INFO] {ASIO IN 0} DebugWrapperCaptureClient::ReleaseBuffer NumFramesRead: 64 26.324 [INFO] {ASIO IN 0} DebugWrapperCaptureClient::GetBuffer 26.324 [INFO] {ASIO IN 0} DebugWrapperCaptureClient::ReleaseBuffer NumFramesRead: 64 26.326 [INFO] {ASIO IN 0} xrun 26.326 [INFO] {ASIO IN 0} DebugWrapperCaptureClient::GetBuffer 26.326 [INFO] {ASIO IN 0} DebugWrapperCaptureClient::ReleaseBuffer NumFramesRead: 64 26.328 [INFO] {ASIO Out} xrun 26.330 [INFO] {ASIO IN 0} xrun (Removing 1868 log records here for ease of readability. They are all copies of 2 previous log entries) 28.198 [INFO] {ASIO IN 0} xrun 28.200 [INFO] {ASIO Out} xrun 28.202 [INFO] {ASIO IN 0} RSAsioAudioClient::OnAsioBufferSwitch - failed to get lock first time. This might be harmless, but if we freeze here this is likely related 28.204 [INFO] {ASIO Out} xrun 28.206 [INFO] {ASIO IN 0} xrun (Removing 3162 lines of log which are identical to 2 log entries in previous line) 31.366 [INFO] {ASIO IN 0} xrun 31.368 [INFO] {ASIO Out} xrun 31.370 [INFO] {ASIO IN 0} RSAsioAudioClient::OnAsioBufferSwitch - failed to get lock first time. This might be harmless, but if we freeze here this is likely related 31.374 [INFO] {ASIO IN 0} xrun 31.376 [INFO] {ASIO Out} xrun (Removing 816 lines which are repeating two records above) 32.190 [INFO] {ASIO IN 0} xrun 32.192 [INFO] {ASIO Out} xrun 32.194 [INFO] {ASIO IN 0} RSAsioAudioClient::OnAsioBufferSwitch - failed to get lock first time. This might be harmless, but if we freeze here this is likely related 32.196 [INFO] {ASIO Out} xrun 32.198 [INFO] {ASIO Out} xrun (Removing 134 copies of same two log entries above -268 lines removes here) 32.646 [INFO] {ASIO IN 0} xrun 32.648 [INFO] {ASIO Out} xrun 32.649 [INFO] {ASIO IN 0} DebugWrapperAudioClient<struct IAudioClient3>::Stop 32.649 [INFO] AsioSharedHost::Stop - enter startCount: 2 32.649 [INFO] AsioSharedHost::Stop - leave startCount: 1 32.649 [INFO] DebugDeviceEnum::UnregisterEndpointNotificationCallback 32.649 [INFO] {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::Stop 32.649 [INFO] AsioSharedHost::Stop - enter startCount: 1 32.649 [INFO] AsioSharedHost::Stop - stopping ASIO stream 32.649 [INFO] AsioSharedHost::Stop - leave startCount: 0 32.649 [INFO] {ASIO Out} RSAsioAudioClient::~RSAsioAudioClient 32.760 [INFO] - Wrapper DLL unloaded

mdias commented 1 year ago

Ahh, you seem to be running your interface with a 64 buffer size. If you check the readme, the Focusrite is a bit special in this regard and has a known issue:

Some Focusrite devices have been reported to only output sound properly when using ASIO buffer sizes of 48, 96 or 192. You can use the custom buffer size setting on RS_ASIO.ini for this.

You can fix it by changing the following RS_ASIO.ini values:

...
[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=96
...

This issue is not visible in all software as you noticed, but it is visible on more timing-sensitive software such as Rocksmith, so I'd recommend you set in your driver control panel to use one a buffer size number multiple of 48, such as: 48, 96, 144 etc.

serdartas commented 1 year ago

Setting it to 96 solved the issue! Thank you very much for the help.