Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

Reply
 
Thread Tools Display Modes
Old 06-25-2022, 06:30 PM   #1
dromer
Human being with feelings
 
dromer's Avatar
 
Join Date: Dec 2021
Location: The Netherlands
Posts: 12
Default Bug: VST2 host frame count not monotonic

Same bug as VST2/3 on BitWig.

Due to suspected rounding errors the early frame-count is sometimes +/-1 off.

Relevant code:
https://github.com/DISTRHO/DPF/commi...9dbc5fec12a882
https://github.com/DISTRHO/Cardinal/...e1bb00e17df340

Problem does not occur with VST3 and LV2.
dromer is offline   Reply With Quote
Old 06-25-2022, 06:48 PM   #2
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 15,815
Default

Hmm if you use floor(VstTimeInfo::samplePos+0.5) it should be monotonic. I suppose we should be doing that rounding on our end.
Justin is offline   Reply With Quote
Old 06-26-2022, 03:14 AM   #3
dromer
Human being with feelings
 
dromer's Avatar
 
Join Date: Dec 2021
Location: The Netherlands
Posts: 12
Default

Quote:
Originally Posted by Justin View Post
Hmm if you use floor(VstTimeInfo::samplePos+0.5) it should be monotonic. I suppose we should be doing that rounding on our end.
Yes, this should really be handled host side. It's the actual number of frames sent to the plugin that is inconsistent.
In VST3 and LV2 implementations this works correctly.
dromer 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:29 PM.


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