swiftui-audio-meter

command
v0.6.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2026 License: MIT Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

swiftui-audio-meter

Combines x/duplexaudio and x/swiftui to probe host audio capabilities, run a lock-free full-duplex audio loopback meter, and measure instant barge-in flush-to-silence latency. Unlike runtime.Caller(0)-based demos, it installs cleanly anywhere with go install.

Usage

Headless probe + barge-in measurement (works in CI and SSH sessions):

go run ./examples/appkit/swiftui-audio-meter -headless

Interactive AppKit window (with optional SwiftUI package hosting via -ui-dir):

go run ./examples/appkit/swiftui-audio-meter
go run ./examples/appkit/swiftui-audio-meter -ui-dir ./examples/appkit/swiftui-host/ui

Install as a prefixed binary:

go install ./examples/appkit/swiftui-audio-meter
swiftui-audio-meter -headless

Documentation

Rendered for darwin/amd64

Overview

Command swiftui-audio-meter demonstrates x/duplexaudio host probing, full-duplex RMS metering, and instant barge-in flush-to-silence inside an AppKit window (optionally hosting a SwiftUI view via x/swiftui) or headless.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL