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
FR API: Get plugin latency & Set output latency #726
Comments
mpl, you sure love impossible/hard requests ;P You can read driver latency via API GetInputOutputLatency() If your driver supports setting the latency by REAPER (by turning on the option to request block size in Preferences->Audio->Device), you could try setting "asio_bsize" config string with SNM_SetIntConfigVar() (I'm not sure if REAPER updates drivers after that. If not, maybe closing the device via manipulation of preferences somehow would achive that) When it comes to plugin latency, we too don't have the access to that. |
But regarding setting the latency of your device...you could maybe achieve it with python script that utilizes pywin32 library. So you could theoretically close audio device in REAPER, show your driver configuration window, set desired latency, close it and activate audio device. All with win32 api... I would actually like to have that so I'll try to bash something of my own. |
Something like this works for Babyface: Note that it needs pywin32 (http://sourceforge.net/projects/pywin32/files/pywin32/ ) This is the example script:
And it needs this module in the same folder (name it "DriverBufferSizeTools.py"):
|
This is exactly what I need. But I have been trying to get it to work. It seems that I get a valid identifier "bufferHwnd"(it does not equal 0) If I use "EnumChildWindows(settingsHwnd, printClasses, None)" it seems that I am the right place. But using but the sendmessage commands does not work and return 0 not matter what I try: Any help would be appreciated:-) |
ARH.... I just re-started my programming environment "run as Admin" now it works:-) |
Sorry for FR crossposting beetween sws and cockos. (Maybe no need to post into Cockos FR Tracker, cause requests gonna implement faster here)
Subject: is it possible to get latency of plugin and set driver output latency?
For what? When I want to play something, I change asio latency to low value and make offline all FX currently worked with more than some_value latency. So, I want to make a script which offline all fx with big latency and turn down latency of audiodriver.
The text was updated successfully, but these errors were encountered: