Login / Register  0 items | $0.00 NewWhat is KVR? Submit News Advertise
User avatar
Nowhk
KVRian
 
696 posts since 2 Oct, 2013

Postby Nowhk; Mon Oct 02, 2017 11:24 pm Re: Could reset output buffer within PDR be dangerous?

Miles1981 wrote:
matt42 wrote:If you can't reset the output buffer how would it ever be safe to write anything there?

This!

The OP question doesn't make sense.

...

You CAN reset also the input buffer. This doesn't mean its safe and correct.
stratum
KVRian
 
1285 posts since 29 May, 2012

Postby stratum; Tue Oct 03, 2017 12:39 am Re: Could reset output buffer within PDR be dangerous?

As long as nobody overwrites a buffer it can be shared without synchronization- therefore the input buffer can be shared because all reasonable people assume inputs to be constant even when they aren't declared to be.

The same isn't true for the output buffer, because there is at least one piece of code that has to modify it - your code.

It's so obvious that the only reasonable reply was to suggest 'take a break and have some fresh air' (was done right in the beginning).
~stratum~
User avatar
Nowhk
KVRian
 
696 posts since 2 Oct, 2013

Postby Nowhk; Tue Oct 03, 2017 12:57 am Re: Could reset output buffer within PDR be dangerous?

stratum wrote:As long as nobody overwrites a buffer it can be shared without synchronization- therefore the input buffer can be shared because all reasonable people assume inputs to be constant even when they aren't declared to be.

The same isn't true for the output buffer, because there is at least one piece of code that has to modify it - your code.

It's so obvious that the only reasonable reply was to suggest 'take a break and have some fresh air' (was done right in the beginning).

:wink:
I see. Thanks to you all!
Sorry for the stupid question!
Previous

Moderator: Moderators (Main)

Return to DSP and Plug-in Development