25 lines
514 B
Zig
25 lines
514 B
Zig
// Custom plugins
|
|
const std = @import("std");
|
|
const lv2 = @import("lv2_helpers.zig");
|
|
const plugins = @import("plugin.zig");
|
|
|
|
const c = lv2.c;
|
|
|
|
const RunContext = plugins.RunContext;
|
|
|
|
pub const RandomNoise = struct {
|
|
allocator: *std.mem.Allocator,
|
|
|
|
pub fn init(
|
|
allocator: *std.mem.Allocator,
|
|
) RandomNoise {
|
|
return RandomNoise{
|
|
.allocator = allocator,
|
|
};
|
|
}
|
|
|
|
pub fn run(self: *RandomNoise, rctx: *RunContext) void {
|
|
rctx.in_buf[0] = f32(2);
|
|
}
|
|
};
|