Bitwig Studio Control Surface API
5.0.11
|
Public Member Functions | |
void | readAsync (MemoryBlock data, AsyncTransferCompledCallback callback, int timeoutInMs) |
int | read (MemoryBlock data, int timeoutInMs) |
A pipe that can be used to read data.
int read | ( | MemoryBlock | data, |
int | timeoutInMs | ||
) |
Requests to read some data from this pipe in a synchronous way (the caller is blocked until the transfer completes).
timeoutInMs | A timeout in milliseconds that will result in an error and termination of the controller if the read does not happen in this time. For inifinite timeout use 0. |
void readAsync | ( | MemoryBlock | data, |
AsyncTransferCompledCallback | callback, | ||
int | timeoutInMs | ||
) |
Requests to read some data from this pipe in an asynchronous way (the caller is not blocked). Once some data has been read the callback will be notified on the controller's thread.
data | A MemoryBlock that can receive the data that is read. |
callback | A callback that is notified on the controller's thread when the read has completed. |
timeoutInMs | A timeout in milliseconds that will result in an error and termination of the controller if the read does not happen in this time. For inifnite timeout use 0. |