miniant-git / real Goto Github PK
View Code? Open in Web Editor NEWReduce audio latency on Windows 10
License: MIT License
Reduce audio latency on Windows 10
License: MIT License
Just wanted to thank mini)(ant for this app. It's solved an issue on my laptop which had me stumped.
Problem was that system sounds were being produced late (by a second or two) if no sound had been played for the previous 5 seconds or so. Sounds trivial but turns out that system sounds provide important feedback to the user, and it's confusing when they're late!
Tried all sorts of things such as alternative sound device drivers, disabling hardware acceleration and enhancements in the sound control panel, tweaking registry settings for my sound device to modify its power settings. None of this worked.
Then I discovered REAL and it solved the problem instantly. I've put a shortcut to the exe in my startup folder with the command line switch to open minimised. Some people have reported that the app locks a CPU thread, but I've tested this and it doesn't on my machine (Lenovo ThinkPad X1 Carbon 9th Gen, Intel Core i7 1185G7, Windows 10 Pro, running a Realtek audio driver).
Thanks so much mini)(ant.
Firstly, thank you for this tool. it's the only working solution for an audio popping (constantly creating new sound sources) issue I am having with Onboard Realtek audio recently, and it works great. But if I also use Voicemeeter, which requires me to use it's own virtual output as Windows default https://i.imgur.com/JRzQ0j0.png, applying REAL to this virtual output doesn't work. It appears the audio popping is only fixed when REAL is applied to the Hardware Realtek output, not the virtual.
So what I have to do on every system start is:
1. Close Voicemeeter.
2. Reselect hardware (Speakers) output as windows default.
3. Apply REAL.
4. Relaunch Voicemeeter.
5. Switch back to Voicemeeter virtual output as windows default.
EDIT: Ok, so it seems this startup-sequence doesn't actually work. REAL only seems to work when Hardware input remains default. Is that because REAL is only looking at default output? or something else? I thought about Closing the issue when I discovered this. but maybe you still can help? :)
Describe the solution you'd like
It would be great if I could target a specific non-default output as an arg.
ie. REAL.exe --tray --device "Realtek High Definition Audio"
Issue with that is both analog and digital outputs have the same name. https://i.imgur.com/6OFsoYr.png but I wouldn't mind disabling the one I don't need if it helps. Though I suspect there is some way to see a unique ID somewhere?
Maybe add an arg to --list devices unique names or assign them a unique ID?
Fantastic!
I've used AVR Audio Guard to run a 'silent' audio stream continuously to work around this problem in the past, but over the last 3 or 4 years I've been unable to find anything that works in windows 10. Until this!
Thank you so very much!
I'm using nssm to create a service out of the exe, but it would be great if it could be installed as a service natively.
REAL version: v0.2.0
Describe the bug
When REAL is open in the background or is open at the startup and then closed, it "locks" up a thread in the cpu, by now, i think its only a visual lock, but if it has a performance decrease it is a slight one at least in the benchmark i tested.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
CPU Usage monitoring showing what it should (100% CPU Usage)
Screenshots
https://prnt.sc/tsjr57
I tryied to install high definition audio device on arctis pro ( Hi-Res Mode ) . It doesn't seem to work. Error: Could not start the device. Any idea why? Can i do something about it or do i just need to switch the headphones?
We have --tray wich hides the window but... it has a tray icon wich i don't really want
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
See title. I've been having issues with the Realtek sound device/driver built-in on my new Windows 10 laptop, seeing as it seems to lag pretty heavily. While REAL helps with mitigating the issue, I feel that it isn't enough. (I did try installing Microsoft's own HD Audio driver, but while it worked better in terms of getting virtually no lag, I had some other kinda major issues with it on my end which forced me to go back to Realtek's own horrible driver.)
My Realtek card supports a minimum 480 samples (10 ms) for 48000 hz, and a minimum of 448 samples (10.1587 ms) for 44100 hz. I want to know if it'd be possible to somehow force the card to buffer on lower samples than even the read minimum.
Is there any chance to make it permanent? For me the problem is about system sounds which are horribly late the highest possible latency, did not check it in games but so far in this new PC didn't notice anything bad.
Your mod changes it to proper condition.
So the CMD window is staying in system :)
This looks a bit not professional :)
But if it can not be another way, let it be :)
I will try on fresh copy of Window 10 remove all Realtec drivers with DDU and install latest Realtec USB drivers.
Was searching online and there was no clear answer
I think i followed everything in the guide so i dont know whats wrong tbh
It is not easy to keep every dependency up-to-date, which will only become harder as new dependencies are introduced. Aside from that, the development setup should be simple and require as few steps as possible.
Automate development environment setup and upkeep by using CMake generator.
It's Time To Do CMake right - A blog post explaining how CMake can be used to effectively manage projects' depencencies.
Building GoogleTest and GoogleMock directly in a CMake project - An example showing how to conveniently download and build a library from sources in CMake. Applicable to curl because we want to download and compile the library as an external project. curl's CMake files are poorly maintained, so I would like to avoid using them.
I use the logitech g pro headphones n when i connect them to the high def audio device instead of their blue voice adapter it seems as the sound gets quieter. Could that be because the audio quality also goes up ( i checked and with the blue voice the quality caps at 16 48000 hz bit while without the blue voice and on thehigh def audio device the quality goes up to 24 bit 192000 hz) so the sound volume goes down? or is it just the blue voice adapter raises the volume limit? i dont really know
Add ability to minimize the program to tray.
Also starting program with -hide argument should run it minimized to being able to put it shortcut in startup folder.
Show additional info such as buffers size (in samples, ms), amount of samples, current, previous, max, min, what was before etc.
REAL version: [e.g. v0.1.1]
0.2.0
Describe the bug
When i turn on my pc and start osu i can feel a slight latency, when i start REAL, the audio latency goes up (about 20ms), its so bad i cannot play osu with hardrock when its running.
When i turn it off however, the latency seems to be very good.
So I ran REAL.exe as admin, but on the cmd console it said:
REAL - REduce Audio Latency v0.2.0, mini)(ant, 2018-2019
Project: https://github.com/miniant-git/REAL
ERROR: Could not enable low-latency mode.
Checking for updates...
The application is up-to-date.
Press any key to exit . . .
I have a focusrite scarlett 2i2 DAC, is this why?
I'm also on windows 8.1.
Seeing no other vehicle for comments and questions, I submit this as an "issue." I apologize in advance if this is inappropriate protocol.
I seek summed audio latency reduction to <30Ms for music performance on Dell notebook
. I already have control of buffer size in my various VST (output) and audio production (input) software and hardware and know that reducing buffer size it too much (often around 128) results in intermittent crackling, yet still fails to solve my current Audio Latency issues (~60Ms). It is impossible to use a piano keyboard as an input under this condition. Any comment?
Thank you.
Tom Stacy
[email protected]
REAL version: 0.2.0
Describe the bug
A clear and concise description of what the bug is.
REAL prevents system from sleeping by using an audio stream
To Reproduce
Steps to reproduce the behavior:
powercfg /requests
in an elevated command promptREAL version: [0.2]
my CPU won't idle anymore after i run this app once. i thought it only had an effect while running and doesnt save any permanent config. now my system and systeminterrupts process always have more than 3% usage combined and even worse on battery around 15%. keep in mind my cpu used to idle at 0.1%
To Reproduce
just run the app once
Expected behavior
cpu usage staying low maybe increase by a percentage point
Additional context
i also deleted my realtek audio driver to use stock audio driver with it
wdf driver using lots of cpu time in latencymon
what i tried
i tried reinstalling audio drivers as well the audio controller
DDU for audio
disabling audio drivers completely as well as windows audio and audio end point services temporarily but cpu usage didnt drop.
edit: actually even my stock windows driver even though it had lower latency and was provided by microsoft it was a realtek driver and my pc wouldnt let me choose the older high definition driver until i uninstalled all the extension drivers and dts drivers (asus version of dolby). but now i have no audio and still same cpu usage problem when cpu 0 is alays higher than 6% usage it used to idle at 0. and also when i tested again turns out when my audios working and i use ur app i get no audio.
can u provide any info on what exactly ur app does and how does it do it or any suggestions on how to revert this? i really dont want to reinstall windows
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.