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

No sound in output, game not found input #54

Closed
wisamasd opened this issue Apr 17, 2020 · 4 comments
Closed

No sound in output, game not found input #54

wisamasd opened this issue Apr 17, 2020 · 4 comments
Labels
asio4all documentation Improvements or additions to documentation

Comments

@wisamasd
Copy link

wisamasd commented Apr 17, 2020

Hello!
There are ASIO drivers for my built-in sound card. In other applications (ToneLibGFX and NoCableLauncher) it works without complaints, but refuses to work with RS_ASIO. Config files and log are attached.Also, when using RS_ASIO, the game completely disappears sound

MSI B150M Mortar: Realtek ALC892

Rocksmith.ini

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

RS_ASIO.ini

[Config]
EnableWasapi=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=48

[Asio.Output]
Driver=Realtek ASIO
EnableSoftwareEndpointVolumeControl=1
EnableSoftwareMasterVolumeControl=1
SoftwareMasterVolumePercent=100

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

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

adudiodump from RS:

00000000:  : INIT ExclusiveMode 1
00000000:  : INIT LatencyBuffer 1
00000000:  : INIT ForceWDM 0
00000000:  : INIT ForceDirectXSink 0
00000616: !: pSinkPortAudio->Init() != AK_Success
00002321:  : ************* NSoundInputMgr_Win32::SETUP mUsePortAudio 1 mUseNWin32 0 mUseWaveIn 0 mForceDirectXSink 0 mForceWDM 0 
00002321:  : ************* NSoundInputMgr_Win32::SETUP mRealtoneCableOnly 0 
00002370:  : AK::RestoreAudioSink WMFocusCallback00028672:  : ************* NSoundInputMgr_Win32::DetectInputDevices_PortAudio Id 1 API 0 : {ASIO IN 0}[p:00ff v:12ba] 
00028672:  : ************* NSoundInputMgr_Win32::DetectInputDevices_PortAudio FOUND! Id 1 API 0 : {ASIO IN 0}[{ASIO IN 0}] 
00028753:  : WASAPI::OpenStream(input): framesPerUser[ 128 ] framesPerHost[ 144 ] latency[ 3.00ms ] exclusive[ YES ] wow64_fix[ NO ] mode[ EVENT ]
00028755:  : ************* NSoundInputMgr_Win32::DetectInputDevices_PortAudio Id 1 API 0 : {ASIO IN 0}  INPUT ON Slot 0
00028755:  : ************* NSoundInputMgr_Win32::DetectInputDevices_PortAudio Id 1 : samplerate 0, input channels 2
00028755:  : ************* NSoundInputMgr_Win32::DetectInputDevices_PortAudio Id 1 API 0 : {ASIO IN 0}[p:00ff v:12ba] 
00028755:  : ************* NSoundInputMgr_Win32::DetectInputDevices_PortAudio - no new input devices, stop

in ToneLib GFX

RS_ASIO-log.txt

@wisamasd
Copy link
Author

wisamasd commented Apr 17, 2020

1 time started with sound, the next time again without sound

UPD: add log when it work
RS_ASIO-log-work.txt

@wisamasd wisamasd reopened this Apr 17, 2020
@wisamasd
Copy link
Author

The problem was partially solved by installing ASIO4ALLv2
image

00000544:  : WASAPI::OpenStream(output): framesPerUser[ 128 ] framesPerHost[ 128 ] latency[ 2.67ms ] exclusive[ YES ] wow64_fix[ NO ] mode[ EVENT ]

framesPerHost is a bufferSize in ASIO4ALL
If framesPerHost < framesPerUser => the sound is falling apart
Is there a way to change the framesPerUser ?

@mdias
Copy link
Owner

mdias commented Apr 18, 2020

You have CustomBufferSize=48 but BufferSizeMode=driver, the CustomBufferSize only works with BufferSizeMode=custom as explained in the comment right above it.

According to the logs you posted, when it doesn't work the driver is trying to go for a 1024 frame buffer size which is way too big.

Also, changing the buffer size on ASIO4ALL will not work while the game is running, you have to restart the game everytime you change it. This is a limitation of RS ASIO as it currently doesn't support restarting the sound engine in the middle of runtime.

@wisamasd
Copy link
Author

wisamasd commented Apr 18, 2020

You have CustomBufferSize=48 but BufferSizeMode=driver, the CustomBufferSize only works with BufferSizeMode=custom as explained in the comment right above it.

I already know that. I RTFM ))

But I spelled out the value. just so that there are no errors in the log. The test of this string is performed regardless of "BufferSizeMode"

It is not problem. Problem with Realtek ASIO in log:

0.630 [INFO]    ASIOBufferSize - min: 144 max: 144 preferred: 144 granularity: 0
0.630 [INFO]    Creating ASIO buffers (2 out, 2 in)...
0.630 [ERROR]    Failed to create ASIO buffers
0.630 [ERROR]  ASIO Error: 
0.630 [INFO]    hr: E_FAIL

after that the game does not find the output device

changing the buffer size on ASIO4ALL will not work while the game is running, you have to restart the game everytime you change it.
I know.
If framesPerHost < framesPerUser => the sound is falling apart

PS:
features if you install ASIO4ALLv2:
when installing, you should always check "Off-line Settings" (off by default), otherwise, when configuring ASIO4ALLv2 in other programs, RS_ASIO will not see the new config, but will use " default"

Example, without "Off-line Settings" and and configuring in GuitarRig/ToneLib:

0.395 [INFO]  Creating AsioSharedHost - dll: C:\Program Files (x86)\ASIO4ALL v2\asio4all.dll
0.417 [INFO]    ASIO input channels info:
0.417 [INFO]      0 - active: 0, channel: 0, group: 0, isInput: 1, type: ASIOSTInt32LSB, name: HD Audio Mic input 1
0.417 [INFO]      1 - active: 0, channel: 1, group: 0, isInput: 1, type: ASIOSTInt32LSB, name: HD Audio Mic input 2
0.417 [INFO]    ASIO output channels info:
0.417 [INFO]      0 - active: 0, channel: 0, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: HD Audio output 1
0.417 [INFO]      1 - active: 0, channel: 1, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: HD Audio output 2
0.417 [INFO]      2 - active: 0, channel: 2, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: HD Audio output 3
0.417 [INFO]      3 - active: 0, channel: 3, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: HD Audio output 4
0.417 [INFO]      4 - active: 0, channel: 4, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: HD Audio output 5
0.417 [INFO]      5 - active: 0, channel: 5, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: HD Audio output 6
0.417 [INFO]      6 - active: 0, channel: 6, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: HD Audio output 7
0.417 [INFO]      7 - active: 0, channel: 7, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: HD Audio output 8

But in ToneLib the settings are saved.
After installing "Off-line Settings" and configuring it

0.433 [INFO]  Creating AsioSharedHost - dll: C:\Program Files (x86)\ASIO4ALL v2\asio4all.dll
0.514 [INFO]    ASIO input channels info:
0.515 [INFO]      0 - active: 0, channel: 0, group: 0, isInput: 1, type: ASIOSTInt32LSB, name: in at rear panel (Blue) 1
0.515 [INFO]      1 - active: 0, channel: 1, group: 0, isInput: 1, type: ASIOSTInt32LSB, name: in at rear panel (Blue) 2
0.515 [INFO]    ASIO output channels info:
0.515 [INFO]      0 - active: 0, channel: 0, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: HD Audio output 1
0.515 [INFO]      1 - active: 0, channel: 1, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: HD Audio output 2
0.515 [INFO]      2 - active: 0, channel: 2, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: HD Audio output 3
0.515 [INFO]      3 - active: 0, channel: 3, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: HD Audio output 4
0.515 [INFO]      4 - active: 0, channel: 4, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: HD Audio output 5
0.515 [INFO]      5 - active: 0, channel: 5, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: HD Audio output 6
0.515 [INFO]      6 - active: 0, channel: 6, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: HD Audio output 7
0.515 [INFO]      7 - active: 0, channel: 7, group: 0, isInput: 0, type: ASIOSTInt32LSB, name: HD Audio output 8

I think this should be added to the readme note about "Off-line Settings" in ASIO4ALLv2.
Now I play with these settings, and everything works fine. Thank you for rs_asio
RS_ASIO.ini RS_ASIO.txt
Rocksmith.ini Rocksmith.txt
ASIO4ALL:
image
RS_ASIO-log: RS_ASIO-log.txt
audiodump: audiodump.txt

@mdias mdias added the documentation Improvements or additions to documentation label May 2, 2020
@mdias mdias added the asio4all label Jun 28, 2020
@mdias mdias closed this as completed Jun 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
asio4all documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants