nsdsp_session_delay_us
nsdsp_session_delay_msnsdsp_session_delay_us
This function produces a delay.
Syntax
int nsdsp_session_delay_us(
nsdsp_session_t session,
int duration
);
Parameters
session - a reference to the Session Object
duration - the duration of the delay in μs
Return
The function returns non-zero if the delay command has been successfully queued, or zero otherwise
Notes
The duration of the delay may not be exact, especially at slower data rates, but it is guaranteed that the delay lasts at least the specified amount of time.
This instruction only queues a command. The command will be sent to NSDSP when you queue enough commands to fill the buffer or when you call nsdsp_session_flush.
Supported session types: SPI
Minimum library version - 163
© 2007-2025 Northern Software Inc. All Rights Reserved.