1
0
Fork 0

Codefix: Fully initialise `MidiFile::DataBlock` to avoid gcc warning.

pull/12240/head
Peter Nelson 2024-03-06 09:36:09 +00:00
parent 08ff1ab93e
commit 12ca151132
No known key found for this signature in database
GPG Key ID: 8EF8F0A467DF75ED
1 changed files with 2 additions and 2 deletions

View File

@ -17,8 +17,8 @@ struct MusicSongInfo;
struct MidiFile {
struct DataBlock {
uint32_t ticktime; ///< tick number since start of file this block should be triggered at
uint32_t realtime; ///< real-time (microseconds) since start of file this block should be triggered at
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<byte> data; ///< raw midi data contained in block
DataBlock(uint32_t _ticktime = 0) : ticktime(_ticktime) { }
};