| 120 | } |
| 121 | |
| 122 | static inline void gmext_write_tempo_ev (std::vector<unsigned char> &midi, |
| 123 | unsigned int tempo) |
| 124 | { |
| 125 | midi.push_back(0xFF); |
| 126 | midi.push_back(0x51); |
| 127 | midi.push_back(3); |
| 128 | tempo = 60000000 / tempo; |
| 129 | midi.push_back(tempo >> 16); |
| 130 | midi.push_back(tempo >> 8); |
| 131 | midi.push_back(tempo); |
| 132 | } |
| 133 | |
| 134 | static inline void gmext_write_end_ev (std::vector<unsigned char> &midi) |
| 135 | { |
no outgoing calls
no test coverage detected