We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd29e18 commit af643aaCopy full SHA for af643aa
1 file changed
bindings/zig/examples/zig_api.zig
@@ -3,15 +3,15 @@ const lm = @import("libremidi");
3
4
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,
+ in_ports: [256]lm.midi.in.port.Handle = @splat(.{}),
+ out_ports: [256]lm.midi.out.port.Handle = @splat(.{}),
8
in_port_count: usize = 0,
9
out_port_count: usize = 0,
10
};
11
12
pub fn main() !void {
13
14
- std.debug.print("Hello from midi Zig(ified) API example!\n", .{});
+ std.debug.print("Hello from libremidi Zig(ified) API example!\n", .{});
15
std.debug.print("libremidi version: {s}\n\n", .{ lm.getVersion() });
16
17
var e: EnumeratedPorts = .{};
0 commit comments