mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 13:45:43 +01:00
'libs/ardour' - Use 'std::vector' to implement an array whose size is unknown (required to be buildable with MSVC)
This commit is contained in:
parent
e5c426ed41
commit
b5da5a1af0
1 changed files with 3 additions and 2 deletions
|
|
@ -19,6 +19,7 @@
|
|||
*/
|
||||
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
|
||||
#include <glibmm/timer.h>
|
||||
|
||||
|
|
@ -270,9 +271,9 @@ AsyncMIDIPort::read (MIDI::byte *, size_t)
|
|||
timestamp_t time;
|
||||
Evoral::EventType type;
|
||||
uint32_t size;
|
||||
MIDI::byte buffer[input_fifo.capacity()];
|
||||
vector<MIDI::byte> buffer(input_fifo.capacity());
|
||||
|
||||
while (input_fifo.read (&time, &type, &size, buffer)) {
|
||||
while (input_fifo.read (&time, &type, &size, &buffer[0])) {
|
||||
_parser->set_timestamp (time);
|
||||
for (uint32_t i = 0; i < size; ++i) {
|
||||
_parser->scanner (buffer[i]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue