add play-opus example
This commit is contained in:
parent
cbf066ade5
commit
5bd6d0cf3d
4 changed files with 195 additions and 2 deletions
17
examples/play-opus/main.zig
Normal file
17
examples/play-opus/main.zig
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
const mach = @import("mach");
|
||||
|
||||
// The global list of Mach modules registered for use in our application.
|
||||
pub const modules = .{
|
||||
mach.Core,
|
||||
mach.Audio,
|
||||
@import("App.zig"),
|
||||
};
|
||||
|
||||
// TODO(important): use standard entrypoint instead
|
||||
pub fn main() !void {
|
||||
// Initialize mach.Core
|
||||
try mach.core.initModule();
|
||||
|
||||
// Main loop
|
||||
while (try mach.core.tick()) {}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue