OpenTTD Source 20241224-master-gee860a5c8e
MidiFile::DataBlock Struct Reference

Public Member Functions

 DataBlock (uint32_t _ticktime=0)
 

Data Fields

uint32_t ticktime
 tick number since start of file this block should be triggered at
 
uint32_t realtime = 0
 real-time (microseconds) since start of file this block should be triggered at
 
std::vector< uint8_t > data
 raw midi data contained in block
 

Detailed Description

Definition at line 20 of file midifile.hpp.

Constructor & Destructor Documentation

◆ DataBlock()

MidiFile::DataBlock::DataBlock ( uint32_t  _ticktime = 0)
inline

Definition at line 24 of file midifile.hpp.

Field Documentation

◆ data

std::vector<uint8_t> MidiFile::DataBlock::data

raw midi data contained in block

Definition at line 23 of file midifile.hpp.

Referenced by ByteBuffer::ReadDataBlock(), TimerCallback(), and MidiFile::WriteSMF().

◆ realtime

uint32_t MidiFile::DataBlock::realtime = 0

real-time (microseconds) since start of file this block should be triggered at

Definition at line 22 of file midifile.hpp.

Referenced by TimerCallback().

◆ ticktime

uint32_t MidiFile::DataBlock::ticktime

tick number since start of file this block should be triggered at

Definition at line 21 of file midifile.hpp.

Referenced by MpsMachine::PlayInto(), TimerCallback(), and MidiFile::WriteSMF().


The documentation for this struct was generated from the following file: