Read

nn::midi::CTR::Read Function

Syntax

Result Read(
     void * pBuf,
     s32 * pReadSize,
     s32 bufferSize
);

Parameters

Name Description
out pBuf Location where data is stored.
out pReadSize Amount of data that was read.
in bufferSize Buffer size.

Return Values

Returns the result of the operation.

Value Description
ResultNotOpened The function was executed while the MIDI device was in a closed state. Run the nn::midi::CTR::Open function to open the MIDI device.
ResultBufferOverflow The internal buffer where MIDI data is temporarily stored is full. Run the nn::midi::CTR::Reset function. MIDI data received during this interval is discarded. If this error occurs, the nn::midi::CTR::Read function might be executing too infrequently.

Description

Reads in data.

Revision History

2010/06/14
Initial version.

CONFIDENTIAL