Skip to content
Proyek

Tentang

Free, open source per-app volume mixer for the macOS menu bar

Desain dan media

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
+3
dalam 15 hari
Mengumpulkan riwayat
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

Smorza

A free, open source menu bar app that gives every Mac app its own volume slider and mute button, like the volume mixer on Windows. Nothing to install besides the app: no audio driver, no kernel extension. It uses the Core Audio process taps that macOS 14.4 and later provide. Smorza was called Volume Mixer until 0.2.1. smorza.app

  • A slider and a mute button for each app that plays sound, and the output device's own volume on top
  • An output device per app: Spotify on the speakers, Discord in the AirPods. Point at an app's row and pick the device from the button that appears next to its slider, or right-click the row. If the device goes away the app plays on the default output, and it moves back when the device returns
  • Volumes are remembered per app and per device: 40% on the speakers, 100% in the headphones
  • Level meters under the sliders of the apps that go through the mixer, while the panel is open; a small dot marks the apps that play without it
  • Pin an app (right-click its row) to keep it in the list while it is quiet or not even running, so it can be set before it plays. Playing apps come first, then pinned ones, then the ones that played last
  • Scroll over a row to change its volume; a focused slider moves 5% with the arrow keys, 1% with Shift. Every slider and button has a VoiceOver label
  • Option-click an app's speaker to play it solo; Option-click again to bring the others back
  • Ignore an app (right-click its row) and Smorza leaves its sound alone and stops listing it. Settings lists ignored apps, with a way back
  • A Notifications & alerts row for the system's alert volume, the one in System Settings > Sound
  • An output priority list in Settings: the first connected device in your order becomes the output, each device keeps its own volume, and a small overlay says where sound went ("AirPods Pro, 40%")
  • Mute All, from the panel or with Control-Option-M anywhere; pressing it again gives every app its own mute back. While it is on, the menu bar icon is crossed out
  • Shortcuts you record in Settings: open or close the mixer, also over a full-screen app, and turn the playing app up or down 5% or mute it. The playing app is the one that started playing last, or the app in front when nothing plays
  • The volume keys can change the playing app instead of the whole Mac, with a small overlay showing its level; Option + the keys still change the Mac's volume (needs the Accessibility permission, asked for when you turn it on in Settings)
  • Actions for the Shortcuts app and smorza:// links for Terminal and Raycast (see Shortcuts and links)
  • Browsers and Electron apps play sound from helper processes; those fold into their app (Chrome, Safari, Discord)
  • Apps at 100% on the default output are never touched. Only apps you turn down, mute or send to another device go through the mixer
  • A welcome window explains the one permission Smorza needs before macOS asks for it
  • Updates itself: checks once a day and asks before installing
  • Settings, behind the gear in the panel: open at login, shortcuts, the volume keys, the output order, ignored apps, sliders in each app's colour, the output volume in the menu bar, updates
  • Liquid Glass on macOS 26 and later
  • In English, German, French and Croatian
  • Universal app for Apple silicon and Intel Macs
The Smorza panel: output volume on top, a slider and mute button per app, and the output devices

Install

Needs macOS 14.4 Sonoma or later.

  1. Download Smorza-<version>.dmg from smorza.app or Releases. Open it and drag Smorza to Applications.
  2. Open Smorza. It is not notarized by Apple yet, so the first launch needs one extra step:
    • macOS 15 Sequoia and later: open Smorza once and close the warning. Then go to System Settings → Privacy & Security and click Open Anyway.
    • macOS 14 Sonoma: right-click Smorza in Applications, choose Open, then Open again.
  3. A welcome window explains the one permission Smorza needs. Click Continue, and when macOS asks to let Smorza record system audio, click Allow: that is how an app's sound reaches the mixer. Nothing is recorded or saved. The only network traffic is the daily update check, which reads the release feed on smorza.app.
  4. Click the sliders icon in the menu bar to open the mixer.

From then on Smorza updates itself: it checks once a day and asks before installing.

With Homebrew: brew install --cask rokoov/smorza/smorza

Coming from Volume Mixer: open Smorza once and it takes over your volumes and devices. Then quit Volume Mixer and move it to the Trash. macOS asks for the audio permission again, because the app has a new name.

If you clicked Don't Allow, turn Smorza on under System Settings → Privacy & Security → Screen & System Audio Recording → System Audio Recording Only and press Try Again in the panel. Until then every app plays at full volume.

Shortcuts and links

Smorza adds five actions to the Shortcuts app: Set App Volume, Mute App, Set App Output Device, Mute All Apps and Unmute All Apps. Spotlight and Siri offer them too ("Mute all apps with Smorza").

The same actions work as smorza:// links, for Terminal, Raycast, Alfred or the Open URLs action in Shortcuts. An app is named by its bundle identifier (osascript -e 'id of app "Spotify"' prints it), or by the name the panel shows. Repeat app= to change several apps at once.

Link What it does
smorza://set-volume?app=com.spotify.client&volume=40 Sets the volume, 0 to 100
smorza://step-volume?app=com.spotify.client&direction=up Turns the app up or down 5%; up also unmutes it
smorza://mute?app=com.spotify.client&muted=true true mutes, false unmutes, toggle (or nothing) toggles
smorza://set-output?app=com.spotify.client&device=AirPods%20Pro Sends the app to a device, by name or UID; device=default sends it back to the system output
smorza://mute-all?muted=toggle Mute All on, off or toggled, as with mute
smorza://reset Every app back to 100%, unmuted, on the system output; pins stay
smorza://open Opens the panel

Spaces in a device name are %20 or +. A link that names an unknown action, app or device does nothing, and the log says why (see Debugging).

  • Terminal: open "smorza://set-volume?app=com.spotify.client&app=com.hnc.Discord&volume=30"
  • Raycast: create a Quicklink with the link as its address and give it a hotkey. {argument} in the link asks for a value each time: smorza://set-volume?app=com.spotify.client&volume={argument}
  • Shortcuts: add Open URLs with the link, or use the Smorza actions directly

Build from source

Needs macOS 14.4 or later and Swift 5.9 or later. The Command Line Tools build the app (xcode-select --install); with Xcode installed it also gets its Shortcuts actions and its translations, which Xcode's tools compile. The first build fetches Sparkle and KeyboardShortcuts through SwiftPM.

scripts/build.sh            # builds build/Smorza.app for this Mac
scripts/build.sh run        # builds and launches it
scripts/build.sh install    # copies it to /Applications and launches it
scripts/format.sh           # formats the code with swift-format
scripts/check.sh            # formatting, build without warnings, core checks, bundle checks
scripts/release.sh          # universal app as a zip (for updates) and a .dmg, for a release
scripts/appcast.sh <zip>    # signs a release zip and adds it to the update feed
scripts/strings.sh          # adds new strings from the code to Resources/Localizable.xcstrings

Every string the app shows lives in Resources/Localizable.xcstrings; the permission prompts are in Resources/InfoPlist.xcstrings. After changing a string in the code, run scripts/strings.sh and translate what it added: scripts/check.sh lists any string a language lacks.

The code follows the formatting of Apple's SwiftNIO (.swift-format): scripts/format.sh applies it and scripts/check.sh fails on anything it would change. Building, signing and publishing a release is described in docs/RELEASING.md.

How it works

For each app below 100% the mixer creates a muted process tap, which takes the app's audio before it reaches the speakers, and a private aggregate device that holds the tap and the real output device. The aggregate device's IO callback plays the tapped audio at the app's volume. Taps and aggregate devices belong to the mixer, so if it quits or crashes macOS removes them and every app plays normally again.

A denied permission gives no error, only silence, so before muting anything the mixer plays an inaudible signal and listens for it through a tap of its own process. Only when it hears it are apps routed.

To name helper processes after their app, the mixer asks macOS which app is responsible for them (responsibility_get_pid_responsible_for_pid, a private call that has been stable for years). If it ever disappears, helpers show under their own names.

Path What
Sources/MixerCore Pure logic: real-time renderer, volume curve, saved settings, row order
Sources/Smorza/CoreAudio Audio clients, process taps, the capture check, output devices
Sources/Smorza/Mixer MixerModel, RouteManager and CaptureCheckController: what is routed, when and where
Sources/Smorza/Views The menu bar panel, one view per file
Sources/Smorza/Settings The settings window
Sources/Smorza/Welcome The welcome window and its steps
Sources/Smorza/Intents The Shortcuts actions
Sources/Smorza/App Entry point, menu bar icon and panel, shortcuts, links, login item, updates, logging
Resources/*.xcstrings Every string and its German, French and Croatian translation
Checks/MixerCoreChecks Checks for MixerCore, run by scripts/check.sh

Performance

Apps you leave at 100% on the default output never pass through the mixer: they keep their own path to the speakers, with no added latency and no work for the mixer. An app the mixer plays (turned down, muted or sent to another device) reaches the speakers about 12 ms later: two 256-frame IO cycles at 48 kHz, plus the device's safety offsets.

Measured on an M4 MacBook Air with macOS 27, each app the mixer plays costs about 1.1% of one core in coreaudiod and 0.3% in the mixer. The level meters only run while the panel is open.

Known issues

  • A turned-down app that was idle starts a few milliseconds late when it plays again
  • An app sent to a device in the mixer plays there even if the app picked another device in its own settings; one left on the system default but turned down follows the system default the same way
  • Other audio routing tools (Background Music, SoundSource, Loopback) can fight over the same apps
  • Smorza is signed ad hoc rather than with an Apple Developer ID, so macOS may ask for its permissions again after an update (Accessibility, if you use the volume keys)

Roadmap

The mixer stays free. Next for everyone: scrolling on the menu bar icon, and more languages.

Pro, coming soon, a one-time unlock for automation:

  • Call ducking: other apps turn down while you are in a call
  • Global microphone mute with a menu bar indicator
  • Profiles: save a mix and switch by shortcut, when a device connects or when an app launches
  • Boost quiet apps up to 200%, with a limiter so nothing clips
  • Night mode: a gentle compressor on every app for late-night listening
  • A command palette: type "spotify 30" or "discord to airpods"

Maybe later, if people ask for them: an equalizer per app, trackpad edge gestures, MIDI controllers.

Uninstall

Quit Smorza from its panel, delete it from Applications and, if you like, remove its permission: tccutil reset AudioCapture com.rokoov.smorza

Debugging

To report a problem, open Settings (the gear in the panel), right-click the version under Updates, choose Copy Diagnostics and paste the result into an issue. It lists the versions, the Mac's model, the output devices, the apps you changed or that are playing, and the mixer's recent log. Nothing is sent anywhere.

/Applications/Smorza.app/Contents/MacOS/Smorza --list            # audio clients and output devices
/Applications/Smorza.app/Contents/MacOS/Smorza --snapshot /tmp   # panel rendered to PNG, routing off
/usr/bin/log stream --predicate 'subsystem == "com.rokoov.smorza"'

--snapshot-demo <dir> renders the panel with sample apps and devices; it made the screenshots above.

Credits

Smorza uses Sparkle for its updates and KeyboardShortcuts for its shortcuts, both MIT licensed. Their licences come with the app, in Smorza.app/Contents/Resources/Licenses.

Support

Smorza is free and always will be. If it saves you a headache, you can buy me a coffee on Ko-fi ☕

License

MIT, see LICENSE.

Jelajahi proyek terkait

Memuat…