summary refs log tree commit diff
path: root/examples
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2025-03-11 16:20:35 +0900
committerNguyễn Gia Phong <mcsinyx@disroot.org>2025-03-11 16:20:35 +0900
commit7580c25a081e39732afaaa7a630d7f58005d5ab1 (patch)
treeecfb353f669af3d5df23bc099e514a7460ca4b73 /examples
parenteb65c5633e1bfae26ae95c6183cc74c2b5937943 (diff)
downloadzeal-0.1.0.tar.gz
Port to Zig 0.14 0.1.0
Diffstat (limited to 'examples')
-rw-r--r--examples/hrtf.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/hrtf.zig b/examples/hrtf.zig
index 99c1780..43e83c0 100644
--- a/examples/hrtf.zig
+++ b/examples/hrtf.zig
@@ -1,5 +1,5 @@
 // Positional audio example with HRTF
-// Copyright (C) 2021, 2023  Nguyễn Gia Phong
+// Copyright (C) 2021, 2023, 2025  Nguyễn Gia Phong
 //
 // This file is part of zeal.
 //
@@ -59,6 +59,7 @@ pub fn main() !void {
     while (try source.isPlaying()) {
         const offset = try source.getSecOffset();
         try source.setPosition(.{ @sin(offset), 0, @cos(offset) });
+        print("\r{d:.1} s", .{ try source.getSecOffset() });
         sleep(10_000_000);
     }
 }