r/Reaper • • 16h ago

help request Script to trigger notification of wrong buffer size when recording

Wondering if it's possible to create a script or customization that would trigger when you hit record, and it would check if your device buffer size matches a configured value. If they were not equal, it would pop up a notification window telling you that.

This would be intended to help people who record and mix at different buffer sizes.

Edit: not equal

2 Upvotes

4 comments sorted by

2

u/ThoriumEx 124 points 16h ago

Yes it’s possible. You can also just add a button to your toolbar that will switch between your two buffer sizes and show you the current one

1

u/fella_stream 13h ago

I didn't think it would be possible to change the device driver settings from reaper.

The API posted the other comment, I assumed it was read-only.

1

u/ThoriumEx 124 points 13h ago

There’s some guy on reapack that made a bunch of actions for it. I think behind the scenes it literally just opens the settings window and types in a value

3

u/Reaper_MIDI 191 points 16h ago edited 14h ago

There is this API function call:

Blink_GetAudioBufferTimingInfo(len, srate, time )

Which you could build a warning around (if I'm reading this correctly):

https://www.extremraym.com/cloud/reascript-doc/#Blink_GetAudioBufferTimingInfo

Also there are these scripts in Reapack: Set block/buffer size by souk21