Old 12-26-2017, 07:39 AM   #1
robgb
Human being with feelings
 
Join Date: Apr 2017
Location: Los Angeles, CA
Posts: 376
Default Script to Change Block Size?

I've discovered an odd little quirk. When I load some instruments, the latency gets slightly worse than it should be. But if I change the audio block size in preferences from, say, 512 to 511 and apply it, the latency all but disappears.

So I'm wondering if there's a script/action that will automatically change the block size in Reaper. I'd like to create a custom action for my toolbar to correct the problem when it happens instead of having to continually open preferences to make the change.
robgb is offline   Reply With Quote
Old 12-27-2017, 10:20 AM   #2
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,108
Default

Quote:
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)
https://github.com/reaper-oss/sws/issues/726

edit:
I didn't try this.

Last edited by nofish; 12-27-2017 at 11:56 AM.
nofish is offline   Reply With Quote
Old 12-29-2017, 09:52 PM   #3
robgb
Human being with feelings
 
Join Date: Apr 2017
Location: Los Angeles, CA
Posts: 376
Default

Quote:
Originally Posted by nofish View Post
Thanks. I'll give this a try.
robgb is offline   Reply With Quote
Old 08-22-2019, 06:27 AM   #4
euga
Human being with feelings
 
Join Date: Oct 2013
Posts: 44
Default

Quote:
Originally Posted by robgb View Post
Thanks. I'll give this a try.
Did anyone try this "asio_bsize" method?
I think this would be really useful for making a "buffersize switch" script. But i'm just a script user, i can't code anything
https://github.com/reaper-oss/sws/is...ment-108308378
Here the RME version seems to work, could be a starting point?
euga is offline   Reply With Quote
Old 08-22-2019, 06:58 AM   #5
euga
Human being with feelings
 
Join Date: Oct 2013
Posts: 44
Default

https://forum.cockos.com/showthread....ht=buffer+size
Quote:
Originally Posted by X-Raym View Post
Settings parameters are registred in reaper.ini file (from resource folder),
and so can be modified with a SWS function dedicated to this.
This is from the reaper.ini
Code:
[audioconfig]
...
asio_bsize=512
so you can adjust these functions
ReaScripts-Templates/X-Raym_Get REAPER.ini value.lua at master · ReaTeam/ReaScripts-Templates

based on that.
euga is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:14 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.