Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

M-Audio ProFire 2626: output OK, but no input #212

Closed
KoenTanghe opened this issue Sep 6, 2021 · 5 comments
Closed

M-Audio ProFire 2626: output OK, but no input #212

KoenTanghe opened this issue Sep 6, 2021 · 5 comments

Comments

@KoenTanghe
Copy link

Hi,

first of all: thanks so much for your work on this!

I've been trying to make my M-Audio ProFire 2626 work with Rocksmith 2014, and then arrived here as that didn't work.
I've tried your solution with the follow settings, but could only get audio output, no input: the game starts, I can hear the various startup sounds (annoying loss of time...), but then I can't use the tuner or learn songs (the game says I'm in "disconnected mode").
The audio interface works just fine in other software (Live, Cubase, Pro Tools, ...)
I also had my Realtone cable plugged in, just in case that is expected (is it?) even if I want to use one of the analog inputs of my ProFire 2626 which has my bass plugged into it.
The sound card is set to 48 kHz, and I tried setting the Windows default sound playback and recording to the sound card (set at 48 kHz). I also tried switching off and then on the sound card to avoid that some other process might have hung on to the card.... But it all didn't help....

From the logs, it seems like there is an error related to the sample format (Int32LSB vs. IEEE float), but not sure if that's the issue, and why this would pop up.

These are the settings I used:

Rocksmith.ini:

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

RS_ASIO.ini:

[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]
; FW 2626 SW Return 1 & 2
Driver=M-Audio ProFire ASIO
BaseChannel=0
AltBaseChannel=
EnableSoftwareEndpointVolumeControl=1
EnableSoftwareMasterVolumeControl=1
SoftwareMasterVolumePercent=100

[Asio.Input.0]
; FW 2626 Analog In 6 (my bass guitar)
Driver=M-Audio ProFire ASIO
Channel=4
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

audiodump.txt:

00000000:  : INIT ExclusiveMode 1
00000000:  : INIT LatencyBuffer 4
00000000:  : INIT ForceWDM 0
00000000:  : INIT ForceDirectXSink 0
00000483:  : WASAPI::OpenStream(output): framesPerUser[ 128 ] framesPerHost[ 128 ] latency[ 2.67ms ] exclusive[ YES ] wow64_fix[ NO ] mode[ EVENT ]
00000483:  : pSinkPortAudio->Init() == AK_Success
00000483:  : ************* NSoundInputMgr_Win32::SETUP mUsePortAudio 1 mUseNWin32 0 mUseWaveIn 0 mForceDirectXSink 0 mForceWDM 0 
00000483:  : ************* NSoundInputMgr_Win32::SETUP mRealtoneCableOnly 0 
00026898:  : ************* NSoundInputMgr_Win32::DetectInputDevices_PortAudio Id 1 API 0 : {ASIO IN 0}[p:00ff v:12ba] 
00026898:  : ************* NSoundInputMgr_Win32::DetectInputDevices_PortAudio FOUND! Id 1 API 0 : {ASIO IN 0}[{ASIO IN 0}] 
00026898:  : WASAPI::OpenStream(input): framesPerUser[ 128 ] framesPerHost[ 128 ] latency[ 2.67ms ] exclusive[ YES ] wow64_fix[ NO ] mode[ EVENT ]
00026899:  : ************* NSoundInputMgr_Win32::DetectInputDevices_PortAudio Id 1 API 0 : {ASIO IN 0}  INPUT ON Slot 0
00026899:  : ************* NSoundInputMgr_Win32::DetectInputDevices_PortAudio Id 1 : samplerate 48000, input channels 2
00026899:  : ************* NSoundInputMgr_Win32::DetectInputDevices_PortAudio Id 1 API 0 : {ASIO IN 0}[p:00ff v:12ba] 
00026899:  : ************* NSoundInputMgr_Win32::DetectInputDevices_PortAudio - no new input devices, stop

RS_ASIO.log.txt:

0.000 [INFO]   - Wrapper DLL loaded (v0.5.5)
0.000 [INFO]  PatchOriginalCode
0.437 [INFO]  Patching CoCreateInstance
0.437 [INFO]  Patch_CallAbsoluteAddress - num locations: 5
0.437 [INFO]  Patching call at 01C5AA85
0.437 [INFO]  Patching call at 01F03B6E
0.437 [INFO]  Patching call at 01F5C681
0.438 [INFO]  Patching call at 01FAEF75
0.438 [INFO]  Patching call at 01FAF40D
0.438 [INFO]  Patching PortAudio MarshalStreamComPointers
0.438 [INFO]  Patch_CallRelativeAddress - num locations: 1
0.438 [INFO]  Patching call at 01F03059
0.438 [INFO]  Patching PortAudio UnmarshalStreamComPointers
0.438 [INFO]  Patch_CallRelativeAddress - num locations: 1
0.438 [INFO]  Patching call at 01F0310E
0.439 [INFO]  Patched_CoCreateInstance called: IID_IMMDeviceEnumerator
0.440 [INFO]  DebugDeviceEnum::GetDefaultAudioEndpoint - dataFlow: eRender - role: eMultimedia
0.440 [INFO]  RSAggregatorDeviceEnum::UpdateAvailableDevices
0.440 [INFO]  AsioHelpers::FindDrivers
0.440 [INFO]    ASIO Avid Driver
0.441 [INFO]    ASIO4ALL v2
0.441 [INFO]    FL Studio ASIO
0.441 [INFO]    M-Audio ProFire ASIO
0.441 [INFO]  RSAsioDeviceEnum::UpdateAvailableDevices - output requesting ASIO driver: M-Audio ProFire ASIO
0.441 [INFO]  Creating AsioSharedHost - dll: C:\Windows\SysWOW64\mafwdiasio.dll
0.444 [INFO]    ASIO input channels info:
0.444 [INFO]      0 - active: 0, channel: 0, group: 0, isInput: 1, type: ASIOSTInt32LSB, name: FW 2626 Analog In 1
0.444 [INFO]      1 - active: 0, channel: 1, group: 0, isInput: 1, type: ASIOSTInt32LSB, name: FW 2626 Analog In 2
0.444 [INFO]      2 - active: 0, channel: 2, group: 0, isInput: 1, type: ASIOSTInt32LSB, name: FW 2626 Analog In 3
0.444 [INFO]      3 - active: 0, channel: 3, group: 0, isInput: 1, type: ASIOSTInt32LSB, name: FW 2626 Analog In 4
0.444 [INFO]      4 - active: 0, channel: 4, group: 0, isInput: 1, type: ASIOSTInt32LSB, name: FW 2626 Analog In 5
0.444 [INFO]      5 - active: 0, channel: 5, group: 0, isInput: 1, type: ASIOSTInt32LSB, name: FW 2626 Analog In 6
0.444 [INFO]      6 - active: 0, channel: 6, group: 0, isInput: 1, type: ASIOSTInt32LSB, name: FW 2626 Analog In 7
0.444 [INFO]      7 - active: 0, channel: 7, group: 0, isInput: 1, type: ASIOSTInt32LSB, name: FW 2626 Analog In 8
0.444 [INFO]      8 - active: 0, channel: 8, group: 0, isInput: 1, type: ASIOSTInt32LSB, name: FW 2626 disabled
0.444 [INFO]      9 - active: 0, channel: 9, group: 0, isInput: 1, type: ASIOSTInt32LSB, name: FW 2626 disabled
0.444 [INFO]      10 - active: 0, channel: 10, group: 0, isInput: 1, type: ASIOSTInt32LSB, name: FW 2626 disabled
0.444 [INFO]      11 - active: 0, channel: 11, group: 0, isInput: 1, type: ASIOSTInt32LSB, name: FW 2626 disabled
0.444 [INFO]      12 - active: 0, channel: 12, group: 0, isInput: 1, type: ASIOSTInt32LSB, name: FW 2626 disabled
0.444 [INFO]      13 - active: 0, channel: 13, group: 0, isInput: 1, type: ASIOSTInt32LSB, name: FW 2626 disabled
0.444 [INFO]      14 - active: 0, channel: 14, group: 0, isInput: 1, type: ASIOSTInt32LSB, name: FW 2626 disabled
0.444 [INFO]      15 - active: 0, channel: 15, group: 0, isInput: 1, type: ASIOSTInt32LSB, name: FW 2626 disabled
0.444 [INFO]      16 - active: 0, channel: 16, group: 0, isInput: 1, type: ASIOSTInt32LSB, name: FW 2626 disabled
0.445 [INFO]      17 - active: 0, channel: 17, group: 0, isInput: 1, type: ASIOSTInt32LSB, name: FW 2626 disabled
0.445 [INFO]      18 - active: 0, channel: 18, group: 0, isInput: 1, type: ASIOSTInt32LSB, name: FW 2626 disabled
0.445 [INFO]      19 - active: 0, channel: 19, group: 0, isInput: 1, type: ASIOSTInt32LSB, name: FW 2626 disabled
0.445 [INFO]      20 - active: 0, channel: 20, group: 0, isInput: 1, type: ASIOSTInt32LSB, name: FW 2626 disabled
0.445 [INFO]      21 - active: 0, channel: 21, group: 0, isInput: 1, type: ASIOSTInt32LSB, name: FW 2626 disabled
0.445 [INFO]      22 - active: 0, channel: 22, group: 0, isInput: 1, type: ASIOSTInt32LSB, name: FW 2626 disabled
0.445 [INFO]      23 - active: 0, channel: 23, group: 0, isInput: 1, type: ASIOSTInt32LSB, name: FW 2626 disabled
0.445 [INFO]      24 - active: 0, channel: 24, group: 0, isInput: 1, type: ASIOSTInt32LSB, name: FW 2626 disabled
0.445 [INFO]      25 - active: 0, channel: 25, group: 0, isInput: 1, type: ASIOSTInt32LSB, name: FW 2626 disabled
0.445 [INFO]    ASIO output channels info:
0.445 [INFO]      0 - active: 0, channel: 0, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: FW 2626 SW Return 1
0.445 [INFO]      1 - active: 0, channel: 1, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: FW 2626 SW Return 2
0.445 [INFO]      2 - active: 0, channel: 2, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: FW 2626 SW Return 3
0.445 [INFO]      3 - active: 0, channel: 3, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: FW 2626 SW Return 4
0.445 [INFO]      4 - active: 0, channel: 4, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: FW 2626 SW Return 5
0.445 [INFO]      5 - active: 0, channel: 5, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: FW 2626 SW Return 6
0.445 [INFO]      6 - active: 0, channel: 6, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: FW 2626 SW Return 7
0.445 [INFO]      7 - active: 0, channel: 7, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: FW 2626 SW Return 8
0.445 [INFO]      8 - active: 0, channel: 8, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: FW 2626 disabled
0.445 [INFO]      9 - active: 0, channel: 9, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: FW 2626 disabled
0.445 [INFO]      10 - active: 0, channel: 10, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: FW 2626 disabled
0.445 [INFO]      11 - active: 0, channel: 11, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: FW 2626 disabled
0.445 [INFO]      12 - active: 0, channel: 12, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: FW 2626 disabled
0.445 [INFO]      13 - active: 0, channel: 13, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: FW 2626 disabled
0.445 [INFO]      14 - active: 0, channel: 14, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: FW 2626 disabled
0.445 [INFO]      15 - active: 0, channel: 15, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: FW 2626 disabled
0.445 [INFO]      16 - active: 0, channel: 16, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: FW 2626 disabled
0.445 [INFO]      17 - active: 0, channel: 17, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: FW 2626 disabled
0.445 [INFO]      18 - active: 0, channel: 18, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: FW 2626 disabled
0.445 [INFO]      19 - active: 0, channel: 19, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: FW 2626 disabled
0.445 [INFO]      20 - active: 0, channel: 20, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: FW 2626 disabled
0.445 [INFO]      21 - active: 0, channel: 21, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: FW 2626 disabled
0.445 [INFO]      22 - active: 0, channel: 22, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: FW 2626 disabled
0.445 [INFO]      23 - active: 0, channel: 23, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: FW 2626 disabled
0.445 [INFO]      24 - active: 0, channel: 24, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: FW 2626 disabled
0.445 [INFO]      25 - active: 0, channel: 25, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: FW 2626 disabled
0.445 [INFO]  RSAsioDeviceEnum::UpdateAvailableDevices - OK
0.445 [INFO]  RSAsioDeviceEnum::UpdateAvailableDevices - input[0] requesting ASIO driver: M-Audio ProFire ASIO
0.445 [INFO]  RSAsioDeviceEnum::UpdateAvailableDevices - OK
0.445 [INFO]  DebugDeviceEnum::UpdateAvailableDevices - 1 render devices, 1 capture devices
0.445 [INFO]    hr: S_OK
0.445 [INFO]    *ppEndpoint: 1256A130
0.445 [INFO]  DebugDeviceEnum::GetDefaultAudioEndpoint - dataFlow: eCapture - role: eMultimedia
0.445 [INFO]    hr: S_OK
0.445 [INFO]    *ppEndpoint: 1256A010
0.445 [INFO]  DebugDeviceEnum::EnumAudioEndpoints - dataFlow: eAll - dwStateMask: 1
0.445 [INFO]    hr: S_OK
0.445 [INFO]    *ppDevices: 1284AB68
0.445 [INFO]  {ASIO Out} DebugWrapperDevice::OpenPropertyStore - stgmAccess: 0
0.445 [INFO]  {ASIO Out} DebugWrapperDevicePropertyStore::GetCount
0.445 [INFO]  {ASIO Out} DebugWrapperDevicePropertyStore::GetAt - iProp: 0
0.445 [INFO]  {ASIO Out} DebugWrapperDevicePropertyStore::GetAt - iProp: 1
0.445 [INFO]  {ASIO Out} DebugWrapperDevice::QueryInterface - riid: IID_IMMEndpoint
0.445 [INFO]  {ASIO Out} DebugWrapperEndpoint::GetDataFlow
0.445 [INFO]    *pDataFlow: eRender
0.445 [INFO]  {ASIO Out} DebugWrapperDevice::Activate - Activate iid: IID_IAudioClient dwClsCtx: 1
0.445 [INFO]  {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::GetDevicePeriod
0.445 [INFO]  {ASIO IN 0} DebugWrapperDevice::OpenPropertyStore - stgmAccess: 0
0.445 [INFO]  {ASIO IN 0} DebugWrapperDevicePropertyStore::GetCount
0.445 [INFO]  {ASIO IN 0} DebugWrapperDevicePropertyStore::GetAt - iProp: 0
0.445 [INFO]  {ASIO IN 0} DebugWrapperDevicePropertyStore::GetAt - iProp: 1
0.445 [INFO]  {ASIO IN 0} DebugWrapperDevicePropertyStore::GetAt - iProp: 2
0.445 [INFO]  {ASIO IN 0} DebugWrapperDevicePropertyStore::GetAt - iProp: 3
0.445 [INFO]  {ASIO IN 0} DebugWrapperDevicePropertyStore::GetAt - iProp: 4
0.445 [INFO]  {ASIO IN 0} DebugWrapperDevice::QueryInterface - riid: IID_IMMEndpoint
0.445 [INFO]  {ASIO IN 0} DebugWrapperEndpoint::GetDataFlow
0.445 [INFO]    *pDataFlow: eCapture
0.445 [INFO]  {ASIO IN 0} DebugWrapperDevice::Activate - Activate iid: IID_IAudioClient dwClsCtx: 1
0.445 [INFO]  {ASIO IN 0} DebugWrapperAudioClient<struct IAudioClient3>::GetDevicePeriod
0.452 [INFO]  {ASIO Out} DebugWrapperDevice::Activate - Activate iid: IID_IAudioClient dwClsCtx: 17
0.452 [INFO]  {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::IsFormatSupported - ShareMode: Exclusive
0.452 [ERROR]    rejecting IEEE Float as it's incompatible with current ASIO sample type ASIOSTInt32LSB
0.452 [ERROR]    failed to initialize asio driver with requested format
0.452 [INFO]    hr: AUDCLNT_E_UNSUPPORTED_FORMAT
0.452 [INFO]  {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::IsFormatSupported - ShareMode: Exclusive
0.452 [ERROR]    rejecting IEEE Float as it's incompatible with current ASIO sample type ASIOSTInt32LSB
0.452 [ERROR]    failed to initialize asio driver with requested format
0.452 [INFO]    hr: AUDCLNT_E_UNSUPPORTED_FORMAT
0.453 [INFO]  {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::IsFormatSupported - ShareMode: Exclusive
0.453 [INFO]  {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::Initialize - ShareMode: Exclusive Flags: 40000 bufferDuration: 3ms periodicity: 3ms
0.453 [INFO]  {ASIO Out} RSAsioAudioClient::Initialize - host requested buffer duration: 3ms (144 frames)
0.453 [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.453 [INFO]  {ASIO Out} RSAsioAudioClient::Initialize - actual buffer duration: 2ms (128 frames)
0.453 [INFO]  AsioSharedHost::Setup - startCount: 0
0.453 [INFO]    post output ready: 1
0.453 [INFO]    ASIOBufferSize - min: 64 max: 4096 preferred: 128 granularity: -1
0.453 [INFO]    Creating ASIO buffers (26 out, 26 in)...
0.453 [INFO]  AsioSharedHost::AsioCalback_asioMessage - selector: 7 value: 0 | returning: 0
0.453 [INFO]  {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::GetBufferSize
0.453 [INFO]    *pNumBufferFrames: 128
0.453 [INFO]  {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::GetStreamLatency
0.453 [INFO]    latency: 4ms
0.453 [INFO]  {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::GetService - riid: IID_IAudioRenderClient
0.453 [INFO]    returning render client
0.453 [INFO]  DebugDeviceEnum::RegisterEndpointNotificationCallback
0.455 [INFO]  Patched_PortAudio_MarshalStreamComPointers
0.455 [INFO]  Patched_PortAudio_UnmarshalStreamComPointers
0.455 [INFO]  {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::SetEventHandle
0.455 [INFO]  {ASIO Out} DebugWrapperRenderClient::GetBuffer NumFramesRequested: 128
0.455 [INFO]  {ASIO Out} DebugWrapperRenderClient::ReleaseBuffer NumFramesWritten: 128
0.455 [INFO]  {ASIO Out} RSAsioAudioClient::SwapBuffers
0.455 [INFO]  {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::Start
0.455 [INFO]  AsioSharedHost::Start - startCount: 0
0.455 [INFO]    Starting ASIO stream...
0.666 [INFO]  M-Audio FW ASIO - AsioSharedHost::AsioCalback_bufferSwitch - buffer switch 1
0.666 [INFO]  {ASIO Out} DebugWrapperRenderClient::GetBuffer NumFramesRequested: 128
0.666 [INFO]  {ASIO Out} DebugWrapperRenderClient::ReleaseBuffer NumFramesWritten: 128
0.666 [INFO]  {ASIO Out} RSAsioAudioClient::SwapBuffers
0.668 [INFO]  M-Audio FW ASIO - AsioSharedHost::AsioCalback_bufferSwitch - buffer switch 2
0.668 [INFO]  {ASIO Out} DebugWrapperRenderClient::GetBuffer NumFramesRequested: 128
0.668 [INFO]  {ASIO Out} DebugWrapperRenderClient::ReleaseBuffer NumFramesWritten: 128
0.668 [INFO]  {ASIO Out} RSAsioAudioClient::SwapBuffers
0.671 [INFO]  M-Audio FW ASIO - AsioSharedHost::AsioCalback_bufferSwitch - buffer switch 3 (not logging upcoming switches)
1.289 [INFO]  {ASIO Out} RSAsioAudioClient::OnAsioBufferSwitch - buffer underrun detected
1.290 [INFO]  {ASIO Out} RSAsioAudioClient::SwapBuffers
1.292 [INFO]  M-Audio FW ASIO - AsioSharedHost::AsioCalback_bufferSwitch - buffer switch 1
1.292 [INFO]  {ASIO Out} RSAsioAudioClient::SwapBuffers
1.295 [INFO]  M-Audio FW ASIO - AsioSharedHost::AsioCalback_bufferSwitch - buffer switch 2
1.297 [INFO]  M-Audio FW ASIO - AsioSharedHost::AsioCalback_bufferSwitch - buffer switch 3 (not logging upcoming switches)
26.869 [INFO]  {ASIO IN 0} DebugWrapperDevice::Activate - Activate iid: IID_IAudioClient dwClsCtx: 17
26.869 [INFO]  {ASIO IN 0} DebugWrapperAudioClient<struct IAudioClient3>::IsFormatSupported - ShareMode: Exclusive
26.869 [ERROR]    rejecting IEEE Float as it's incompatible with current ASIO sample type ASIOSTInt32LSB
26.869 [ERROR]    failed to initialize asio driver with requested format
26.869 [INFO]    hr: AUDCLNT_E_UNSUPPORTED_FORMAT
26.869 [INFO]  {ASIO IN 0} DebugWrapperAudioClient<struct IAudioClient3>::IsFormatSupported - ShareMode: Exclusive
26.869 [ERROR]    rejecting IEEE Float as it's incompatible with current ASIO sample type ASIOSTInt32LSB
26.869 [ERROR]    failed to initialize asio driver with requested format
26.869 [INFO]    hr: AUDCLNT_E_UNSUPPORTED_FORMAT
26.869 [INFO]  {ASIO IN 0} DebugWrapperAudioClient<struct IAudioClient3>::IsFormatSupported - ShareMode: Exclusive
26.869 [ERROR]    rejecting IEEE Float as it's incompatible with current ASIO sample type ASIOSTInt32LSB
26.869 [ERROR]    failed to initialize asio driver with requested format
26.869 [INFO]    hr: AUDCLNT_E_UNSUPPORTED_FORMAT
26.869 [INFO]  {ASIO IN 0} DebugWrapperAudioClient<struct IAudioClient3>::IsFormatSupported - ShareMode: Exclusive
26.869 [INFO]  {ASIO IN 0} DebugWrapperAudioClient<struct IAudioClient3>::Initialize - ShareMode: Exclusive Flags: 40000 bufferDuration: 3ms periodicity: 3ms
26.869 [INFO]  {ASIO IN 0} RSAsioAudioClient::Initialize - host requested buffer duration: 3ms (144 frames)
26.869 [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.869 [INFO]  {ASIO IN 0} RSAsioAudioClient::Initialize - actual buffer duration: 2ms (128 frames)
26.869 [INFO]  AsioSharedHost::Setup - startCount: 1
26.869 [INFO]  {ASIO IN 0} DebugWrapperDevice::Activate - Activate iid: IID_IAudioEndpointVolume dwClsCtx: 1
26.869 [INFO]  {ASIO IN 0} DebugWrapperAudioClient<struct IAudioClient3>::GetBufferSize
26.869 [INFO]    *pNumBufferFrames: 128
26.869 [INFO]  {ASIO IN 0} DebugWrapperAudioClient<struct IAudioClient3>::GetStreamLatency
26.869 [INFO]    latency: 4ms
26.869 [INFO]  {ASIO IN 0} DebugWrapperAudioClient<struct IAudioClient3>::GetService - riid: IID_IAudioCaptureClient
26.869 [INFO]    returning capture client
26.869 [INFO]  Patched_PortAudio_MarshalStreamComPointers
26.869 [INFO]  Patched_PortAudio_UnmarshalStreamComPointers
26.870 [INFO]  {ASIO IN 0} DebugWrapperAudioClient3::QueryInterface riid: {F2D67F48-1977-4991-A3FC-A093835A7DC2}
26.870 [INFO]  {ASIO IN 0} DebugWrapperAudioClient2<struct IAudioClient3>::QueryInterface riid: {F2D67F48-1977-4991-A3FC-A093835A7DC2}
26.870 [INFO]  {ASIO IN 0} DebugWrapperAudioClient<struct IAudioClient3>::QueryInterface riid: {F2D67F48-1977-4991-A3FC-A093835A7DC2}
26.870 [INFO]  {ASIO IN 0} DebugWrapperAudioClient<struct IAudioClient3>::SetEventHandle
26.870 [INFO]  {ASIO IN 0} DebugWrapperAudioClient<struct IAudioClient3>::Start
26.870 [INFO]  AsioSharedHost::Start - startCount: 1
26.870 [INFO]  {ASIO IN 0} DebugWrapperCaptureClient::GetBuffer
26.870 [INFO]  {ASIO IN 0} DebugWrapperAudioEndpointVolume::SetMasterVolumeLevelScalar fLevel: 0.1726.870 [INFO]  
{ASIO IN 0} DebugWrapperCaptureClient::ReleaseBuffer NumFramesRead: 128
26.870 [INFO]  {ASIO IN 0} RSAsioAudioClient::SwapBuffers
26.873 [INFO]  {ASIO IN 0} DebugWrapperCaptureClient::GetBuffer
26.873 [INFO]  {ASIO IN 0} DebugWrapperCaptureClient::ReleaseBuffer NumFramesRead: 128
26.873 [INFO]  {ASIO IN 0} RSAsioAudioClient::SwapBuffers
26.875 [INFO]  {ASIO IN 0} DebugWrapperCaptureClient::GetBuffer
26.875 [INFO]  {ASIO IN 0} DebugWrapperCaptureClient::ReleaseBuffer NumFramesRead: 128
38.982 [INFO]  {ASIO IN 0} DebugWrapperAudioEndpointVolume::SetMasterVolumeLevelScalar fLevel: 0.5
105.793 [INFO]  {ASIO IN 0} DebugWrapperAudioEndpointVolume::SetMasterVolumeLevelScalar fLevel: 0.17
113.092 [INFO]  {ASIO IN 0} DebugWrapperAudioClient<struct IAudioClient3>::Stop
113.092 [INFO]  AsioSharedHost::Stop - startCount: 2
113.092 [INFO]  DebugDeviceEnum::UnregisterEndpointNotificationCallback
113.093 [INFO]  {ASIO Out} DebugWrapperAudioClient<struct IAudioClient3>::Stop
113.093 [INFO]  AsioSharedHost::Stop - startCount: 1
113.093 [INFO]  AsioSharedHost::Stop  stopping ASIO stream
113.379 [INFO]   - Wrapper DLL unloaded

I didn't see anything special in the log file, apart from the error lines:

0.452 [ERROR]    rejecting IEEE Float as it's incompatible with current ASIO sample type ASIOSTInt32LSB
0.452 [ERROR]    failed to initialize asio driver with requested format

I have experience developing music/audio software (not on a driver level though), so if you want me to test some specific things, maybe with a new version with extra logging, just let me know, and I'll try to help out!

Best,
Koen

@mdias
Copy link
Owner

mdias commented Sep 7, 2021

Everything looks fine, so I'm thinking the only thing you may have wrong is the input channel number.
Keep in mind this starts at zero, so if you want the 4th channel, you have to use Channel=3.

@KoenTanghe
Copy link
Author

Thank you for having a look!

Yes, the channel number should have been 5 actually (I wanted my bass which is on FW 2626 Analog In 6), but that shouldn't matter as it would then have picked up my guitar instead, and apparently neither worked.

It's very strange that I keep seeing that I', in "disconnected mode"...

But after this I then actually also tried with just my laptop's built-in speaker as output and the RockSmith cable as input (after removing all the RS_ASIO files) and even then RockSmith keeps saying I'm in "disconnected mode". I even uninstalled the game, then deleted the remains in the game's folder and reinstalled, and still the same... It's a MacBook Pro mid 2015 (in dual boot with bootcamp), but in other music/audio software all is fine...
Also, on my desktop machine, this seemed to work fine before (but I'd better check if it still works fine there actually...)

I guess I'll have to contact tech support from Ubisoft...

@mdias
Copy link
Owner

mdias commented Sep 8, 2021

This is strange indeed. I was about to suggest you make sure it works with other ASIO enabled software but it looks like you already did.

You don't need to have the RealTone Cable connected for this to work, but it shouldn't hurt either (unless you had EnableWasapiInputs=1) in the ini file.

The only thing I can think of is that maybe your signal level is too low? You can try either going into the calibration tool inside the game, or setting EnableSoftwareEndpointVolumeControl=0 on your [Asio.Input.0] section; this will prevent the game from trying to control the input volume.

If you feel confortable with C++ you can also just open the source with VS2019 as it compiles into a normal DLL (not kernel level code), and you can look into AsioSharedHost::AsioCalback_bufferSwitch which is the callback from ASIO which feeds the output buffer and also reads from the input buffer; there you should be able to dump the raw audio from an ASIO channel with something like:

ASIOBufferInfo* tmp_bufferInfo = GetInputBuffer(5);
fwrite(tmp_bufferInfo->buffers[doubleBufferIndex], 4, m_NumBufferFrames, f);

(don't forget to replace the DLL inside the game folder if you're compiling this from source)

However if your input buffers here contain good data, there is no reason it shouldn't be reaching the game.

@KoenTanghe
Copy link
Author

Thanks for your feedback, but I'm afraid I've wasted your (and my) time with this...

Since I had noticed that also the normal configuration (without using the RS ASIO files) didn't work on my laptop, I did some further digging, and it turned out that when I went into "Ctrl : Path/Input" and checked the "Input" setting, it was set to "Disconnected"... which explains why things didn't work and I could not even access the Tuner and some other parts of the game (with the game complaining "Not available in disconnected mode")...
As soon as I set this to "Real tone cable", the game worked as expected with the real tone cable.

Also after that, I put back the RS ASIO files and the correct settings in RS_ASIO.ini for my setup, and it worked perfectly, without the Real tone cable. I set the ProFire sound card to 48 kHz with a buffer size of 128 (maybe 64 works fine too, but I didn't try that)). I could also add my electric guitar and a microphone, and all 3 work.

So all is fine, and you can add the M-Audio ProFire 2626 card to your confirmed list of supported sound cards if you want to.
I've attached my RS_ASIO settings file as well (I added a comment for the bass guitar, electric guitar and microphone channels in the ini file, with an indication which ProFire analog channel they were plugged into in that setup).
RS_ASIO.ini.txt

Again: thanks for making this possible!
As for me, you can close this ticket as solved.

@mdias
Copy link
Owner

mdias commented Sep 13, 2021

Awesome! Glad that was just simple oversight :)

I'll add it to the list shortly 👍

@mdias mdias closed this as completed Sep 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants