openharmony 鸿蒙 capi-ohmidi-oh-midievent

2026-08-25 浏览 (1)

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

NameDescription
uint64_t timestampTimestamp, 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 lengthNumber 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 *dataPointer 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 鸿蒙 capi-ohaudio

openharmony 鸿蒙 capi-ohmidi

openharmony 鸿蒙 arkts-apis-audio-AudioManager

openharmony 鸿蒙 capi-ohaudiosuite-oh-audiosuite-spacerenderpositionparams

openharmony 鸿蒙 capi-ohaudio-oh-audiostreaminfo

openharmony 鸿蒙 errorcode-ringtone

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/hJzUr97f