OH_MIDIEvent
typedef struct {...} OH_MIDIEvent
Overview
This struct describes a generic MIDI event structure, applicable to both raw byte stream (MIDI 1.0) and Universal MIDI Packet (UMP) data formats.
Since: 24
Related module: OHMIDI
Header file: native_midi_base.h
Summary
Member Variables
| Name | Description |
|---|---|
| uint64_t timestamp | Timestamp, in nanoseconds. The reference time can be obtained using clock_gettime(CLOCK_MONOTONIC, &time). The value 0 indicates sending messages immediately. Since: 24 |
| size_t length | Number of 32-bit words in the UMP packet. For example: A Type 2 or Type 4 message occupy 1 word (a 64-bit message occupies 2 words). This field indicates the number of uint32_t words in the UMP data, not the number of bytes. Since: 24 |
| uint32_t *data | Pointer to the UMP data, including original UMP words (uint32_t). This pointer must point to a 4-byte aligned memory address to comply with the UMP specification's requirement for 32-bit boundary alignment. Since: 24 |
你可能感兴趣的鸿蒙文章
openharmony 鸿蒙 capi-native-audiostreambuilder-h
openharmony 鸿蒙 capi-ohaudiosuite
openharmony 鸿蒙 js-apis-inner-multimedia-systemSoundPlayer
openharmony 鸿蒙 arkts-apis-audio-i
openharmony 鸿蒙 arkts-apis-audio-AudioManager
openharmony 鸿蒙 capi-ohaudiosuite-oh-audiosuite-spacerenderpositionparams