diff options
Diffstat (limited to 'examples/hrtf.zig')
-rw-r--r-- | examples/hrtf.zig | 3 |
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); } } |