File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3,15 +3,15 @@ const lm = @import("libremidi");
3
3
4
4
5
5
const EnumeratedPorts = extern struct {
6
- in_ports : [256 ]lm.midi.in.port.Handle = .{ lm.midi.in.port.Handle {} } ** 256 ,
7
- out_ports : [256 ]lm.midi.out.port.Handle = .{ lm.midi.out.port.Handle {} } ** 256 ,
6
+ in_ports : [256 ]lm.midi.in.port.Handle = @splat (.{}) ,
7
+ out_ports : [256 ]lm.midi.out.port.Handle = @splat (.{}) ,
8
8
in_port_count : usize = 0 ,
9
9
out_port_count : usize = 0 ,
10
10
};
11
11
12
12
pub fn main () ! void {
13
13
14
- std .debug .print ("Hello from midi Zig(ified) API example!\n " , .{});
14
+ std .debug .print ("Hello from libremidi Zig(ified) API example!\n " , .{});
15
15
std .debug .print ("libremidi version: {s}\n\n " , .{ lm .getVersion () });
16
16
17
17
var e : EnumeratedPorts = .{};
You can’t perform that action at this time.
0 commit comments