OpenTTD Source: MidiFile::DataBlock Struct Reference

OpenTTD Source 15.3

Public Member Functions | Data Fields
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
int64_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 19 of file midifile.hpp.

## Constructor & Destructor Documentation

## ◆ DataBlock()

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

Definition at line 23 of file midifile.hpp.

## Field Documentation

## ◆ data

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

raw midi data contained in block

Definition at line 22 of file midifile.hpp.

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

## ◆ realtime

int64_t MidiFile::DataBlock::realtime = 0

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

Definition at line 21 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 20 of file midifile.hpp.

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

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

- src/music/midifile.hpp