meiControlSecondstoSamples

Declaration
long meiControlSecondsToSamples(MPIControl control, 
                                float      seconds,
                                long       *samples)
Required Header stdmei.h
Description

ControlSecondsToSamples writes to samples the number of servo cycles that will take place in seconds number of seconds (at the current sample rate). Use this function to convert seconds to samples.

Return Values
MPIMessageOK if ControlSecondsToSamples successfully converts the seconds to samples.
See Also meiControlSamplestoSeconds | meiControlSampleCounter | meiControlSampleWait