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

Sound is not recording by OBS #7

Closed
SAARussian opened this issue Dec 9, 2019 · 46 comments
Closed

Sound is not recording by OBS #7

SAARussian opened this issue Dec 9, 2019 · 46 comments

Comments

@SAARussian
Copy link

How I can record sound from the game with OBS through rs_asio?

@mdias
Copy link
Owner

mdias commented Dec 10, 2019

If your device exposes a loopback interface, you can use that.

Alternatively, you could try to use ASIO only for the input, and use WASAPI for output by setting Driver= on the output, and setting EnableWasapi=1. This way if your default audio output device has a loopback feature (for example, Stereo Mix on realtek onboard audio) you can record using that.

If you want to output through your interface and also record, you'll have to find a way to split the audio into your headphones/speakers and also into your computer's normal soundcard line-in or something like that, as with ASIO the device is completely owned by the user application (which is what allows low latency).

Recording with RS_ASIO itself is not a feature I will add.

@SAARussian
Copy link
Author

can I use wasapi + asio4all with my soundcard and will it do a lot of latency?

@mdias
Copy link
Owner

mdias commented Dec 11, 2019

You should be able to use WASAPI + Asio4all, yes.

It's not possible for me to tell you if latency will improve or not. But there's actually a chance it can improve.

@SAARussian
Copy link
Author

image
how should I named that driver in rs_asio?

@SAARussian
Copy link
Author

Driver=BEHRINGER USB AUDIO don't work

@mdias
Copy link
Owner

mdias commented Dec 12, 2019

If you look at my first reply it says there what you have to do to enable WASAPI for output while using ASIO for input.
If that doesn't work, please post the log file.

@SAARussian
Copy link
Author

Here I just decided to try with a different driver to run the game, or do I need to open a new issue?
image
RS_ASIO-log.txt

@SAARussian
Copy link
Author

Yeah, no sound from input
RS_ASIO-log.txt

@mdias
Copy link
Owner

mdias commented Dec 15, 2019

Your output "Driver" line is not empty. As I said in my first reply, if you want to output through WASAPI to be able to record, you need that to be empty to make sure the game will select the wasapi device.

As for the input, it would be weird if you had it working before, but not now. But if you can try disabling all your recording devices in the windows audio device manager, except for the one you want to use.

@SAARussian
Copy link
Author

SAARussian commented Dec 15, 2019

OK right know I have 11.1 ms latency with this strange asio driver versus asio4all 256 samples / 48000 sample rate x 2 kernel buffers x 2 (input + output) x 1000 = 27 ms latency
image
image
But what about default rocksmith driver with nocable patch? 160 MaxOutputBufferSize (samples) / 48000 x 2 LatencyBuffer x 2 (input + output) x 1000 = 13.3 ms latency?
image
Are my calculations correct?

Anyway with your feature I can use second HiZ input channel (thank you very much for this, God bless you xD), but how you think can I do it with nocable patch + voicemeeter without RS_ASIO?

@mdias
Copy link
Owner

mdias commented Dec 15, 2019

Your calculations are mostly correct, but it only accounts for the latency introduced by the buffer size while in reality there is also protocol and bus latency involved. For example, sending 1 byte through USB has both USB protocol overhead and actual hardware BUS overhead which is hard to measure accurately. However I would say a good rule of thumb is to just account for at least 3ms latency just for USB itself, so whatever result you achieve, you can "safely" just add at least 3ms on top of it (if it's a USB device).

Now, depending on which device you're using for the native Rocksmith "driver" (which is WASAPI) latency could be better or worse; unfortunately there's no easy way for me to measure this...

Regarding Voicemeeter, I have tried it in the past but had horrible results (bad distortion and very bad latency) but I've seen other people say it works good for them, so I guess your success may vary depending on hardware.

There are other tricks you could try if ASIO doesn't work the best for you, like having your guitar interface set in passthrough/monitor mode, and just route it's output to your onboard card line-in, and use that with NoCable patch. I personally never tried it, but it seems like it could work.

@SAARussian
Copy link
Author

SAARussian commented Dec 15, 2019

You can add BEHRINGER U-PHORIA UM2 as 16-bit audio interfaces reported to work well

@SAARussian
Copy link
Author

Perhaps whom any use to anyone. I don't know if it's all set up correctly, but it works, maybe a way to further reduce latency.
image

@SAARussian
Copy link
Author

It is possible that the rocksmith buffer.ini is added to the asio buffer and the delay only increases. Than without rs_asio.

@mdias
Copy link
Owner

mdias commented Dec 15, 2019

It's possible that the buffers are added, increasing the delay, yes. However, this will be the case also for normal non-asio drivers.

Is this driver official?

@SAARussian
Copy link
Author

SAARussian commented Dec 16, 2019

And what buffer is added to normal drivers without asio? Game sound engine base on wasapi? (160/48000x2x2+3 ms (usb bus as you say)) - settings through rocksmith.ini 16 ms good results for wasapi VS asio4All works only on 24 ms (256/48000x2x2+3) settings through asio4all

About drivers. I don’t even know, before he was on the official website for my device. Then they removed him from there, now there is asio4all. But it works as with asio4all and with BEHRINGER 2902 X64 2.8.40
image
http://englishdrummer.blogspot.com/2015/06/behringer-um2-old-drivers-and.html
The drivers are signed by company with other name, so can it be license issue?

@mdias
Copy link
Owner

mdias commented Dec 18, 2019

The game indeed uses WASAPI by default, and the game requests 144 samples for input and output afaik. What latency you end up having also depends on what the driver does behind the scenes.

As for that driver, I should probably add it with a note as it seems that driver is no longer officially supported for whatever reason.

Anyway, this issue is originally about being able to record through OBS, but I'm afraid there's nothing I can actually do in the software about that one, so I'll close it. Feel free to open another one if you have an issue related to another topic, and thanks for all the feedback :)

@mdias mdias closed this as completed Dec 18, 2019
@HillMidget
Copy link

How exactly were u able to get the Behringer ASIO interface to show when launching RS?

@SAARussian
Copy link
Author

SAARussian commented Dec 28, 2019

How exactly were u able to get the Behringer ASIO interface to show when launching RS?
I just edit it on Cockos Reaper in audio settings
#7 (comment)
image

@elzafir
Copy link

elzafir commented Apr 5, 2020

You can add BEHRINGER U-PHORIA UM2 as 16-bit audio interfaces reported to work well

Did you manage to do it with ASIO4ALL as well?

@SAARussian
Copy link
Author

You can add BEHRINGER U-PHORIA UM2 as 16-bit audio interfaces reported to work well

Did you manage to do it with ASIO4ALL as well?

Yes

@madkep
Copy link

madkep commented May 9, 2020

You can add BEHRINGER U-PHORIA UM2 as 16-bit audio interfaces reported to work well

Did you manage to do it with ASIO4ALL as well?

Yes

witch version do you prefer to use and give to you a better performance??
this default behringer driver or use asio4all driver

@SAARussian
Copy link
Author

You can add BEHRINGER U-PHORIA UM2 as 16-bit audio interfaces reported to work well

Did you manage to do it with ASIO4ALL as well?

Yes

witch version do you prefer to use and give to you a better performance??
this default behringer driver or use asio4all driver

I prefer Behringer USB Audio, cuz it have minimum latency (about 11 ms), when asio4all (28 ms).

@madkep
Copy link

madkep commented May 10, 2020

You can add BEHRINGER U-PHORIA UM2 as 16-bit audio interfaces reported to work well

Did you manage to do it with ASIO4ALL as well?

Yes

witch version do you prefer to use and give to you a better performance??
this default behringer driver or use asio4all driver

I prefer Behringer USB Audio, cuz it have minimum latency (about 11 ms), when asio4all (28 ms).

ohh good to know
thanks you
you still have the same configuration in Rocksmith.ini?

@SAARussian
Copy link
Author

@madkep Yes. Is it work for you?

@madkep
Copy link

madkep commented May 10, 2020

@madkep Yes. Is it work for you?

yesss
i have to buy a jack to minijack adapter
to connect my speaker but after that all will work ok

@alfredox123
Copy link

Perhaps whom any use to anyone. I don't know if it's all set up correctly, but it works, maybe a way to further reduce latency.
image

with this config your using direct monitor in your um2 audio interface as your output or your pc 3.5mm as output?

@SAARussian
Copy link
Author

Perhaps whom any use to anyone. I don't know if it's all set up correctly, but it works, maybe a way to further reduce latency.
image

with this config your using direct monitor in your um2 audio interface as your output or your pc 3.5mm as output?

No, I just get monitoring from rocksmith

@alfredox123
Copy link

then is not working for me, i cant get any audio output but i get input signal checked with reaper. i also dont get any audio output on reaper using legacy driver but no problems with asio4all in reaper (rs2014 with asio4all i couldnt make it work either)

@SAARussian
Copy link
Author

then is not working for me, i cant get any audio output but i get input signal checked with reaper. i also dont get any audio output on reaper using legacy driver but no problems with asio4all in reaper (rs2014 with asio4all i couldnt make it work either)

So, I can't help with that. Cuz legacy driver to U-Phoria Um2 works for me fine.

@alfredox123
Copy link

alfredox123 commented Mar 3, 2021

my guess is that it is using the audio interface as output but for now i dont have an adapter from minijack to jack to test

@SAARussian
Copy link
Author

But you say that you don't get any audio from output. How you check it if you don't have output connection (headphones, monitors)? Via reaper master mix?

@alfredox123
Copy link

alfredox123 commented Mar 3, 2021

i get output sound if i use asio4all in reaper, but not in rs2014 neither with asio4all or behringer driver, later i will do a few more test to see if i can atleast make ir work with asio4all but latency will kill me definitely

@SAARussian
Copy link
Author

Yeah, I play with this shit (asio4all) for 2 years, and when check my rhythm playing with click meter, I saw that I was always in a hurry at least 100 ms ahead of the beats

@alfredox123
Copy link

Ok so i manage to get it working in reaper with 6ms latency using wasapi, but still no audio output with rs2014. it must be something with this lines

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

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

@SAARussian
Copy link
Author

I think wasapi can't get so low latency (6ms). Give me your rs_asio log

@zagatozee
Copy link

Sorry guys, quite late to this party, but if you're looking for ways to capture ASIO within OBS - and the OBS ASIO plug in doesn't work for you (it rarely does with Rocksmith too) - this video guide (focusrite scarlet based, but if you have RS_ASIO working on your hardware without obs, should still be relevant) - using voicemeter, is probably worth your time to watch.

https://youtu.be/gIp6IyPjGOY

@SAARussian
Copy link
Author

Sorry guys, quite late to this party, but if you're looking for ways to capture ASIO within OBS - and the OBS ASIO plug in doesn't work for you (it rarely does with Rocksmith too) - this video guide (focusrite scarlet based, but if you have RS_ASIO working on your hardware without obs, should still be relevant) - using voicemeter, is probably worth your time to watch.

https://youtu.be/gIp6IyPjGOY

voicemeter is bullshit if you wanna monitoring yourself, cuz it give a lot latency, better use asio link pro or dsp loop-back in audio interface

@zagatozee
Copy link

voicemeter is bullshit if you wanna monitoring yourself, cuz it give a lot latency, better use asio link pro or dsp loop-back in audio interface

No arguments form me there, but no-one has done a video tutorial yet on Asio Link Pro - it is hard enough getting most people to accept that it is better never mind the "hacky" way of activating it that feels suss AF!

@SAARussian
Copy link
Author

No arguments form me there, but no-one has done a video tutorial yet on Asio Link Pro - it is hard enough getting most people to accept that it is better never mind the "hacky" way of activating it that feels suss AF!

So, maybe I should do this video? Its pretty simple, you just need to install it) But I don't understand why talking about "hacky"

@alfredox123
Copy link

I think wasapi can't get so low latency (6ms). Give me your rs_asio log

image

@alfredox123
Copy link

Sorry guys, quite late to this party, but if you're looking for ways to capture ASIO within OBS - and the OBS ASIO plug in doesn't work for you (it rarely does with Rocksmith too) - this video guide (focusrite scarlet based, but if you have RS_ASIO working on your hardware without obs, should still be relevant) - using voicemeter, is probably worth your time to watch.

https://youtu.be/gIp6IyPjGOY

tried that video and still no sound from rs2014 :(

@alfredox123
Copy link

ok, finally i made it work, have to uninstall rs_asio, verify game cache files of the game, config it without rs_asio, then install rs_asio, config it and now its working with legacy behringer usb audio and with output sound yay!.

however you need to change this:

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

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

thats all

@SAARussian
Copy link
Author

lol

@SAARussian
Copy link
Author

I think wasapi can't get so low latency (6ms). Give me your rs_asio log

image

So, in reaper I see 3.0/3.0ms latency, but when I measured roundtrip by myself, its 13 ms.

@Gasoli
Copy link

Gasoli commented Jul 1, 2022

I'm using VOICEMEETER BANANA and game is Lot more stable and the latency is very good!!

How i did!?

print1
print2
print3
print4
print5
print6
print7
print8

@mdias mdias mentioned this issue Oct 27, 2023
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

8 participants