Noureddine RAMDI / HiFidelity: native macOS audiophile player with bit-perfect Hog mode playback

Created Mon, 04 May 2026 10:23:01 +0000 Modified Sat, 23 May 2026 20:41:27 +0000

rvarunrathod/HiFidelity

HiFidelity tackles a challenge audiophiles know well: how to play music on macOS without the usual system audio mixing messing with the sound quality. Most music players rely on Core Audio’s default path, which introduces resampling or volume normalization that can degrade the audio fidelity. HiFidelity goes under the hood by using macOS Hog mode, a special exclusive audio device access that bypasses the mixing engine and delivers pristine, bit-perfect audio samples directly to your DAC.

What HiFidelity is and how it works

HiFidelity is a native macOS 14+ application written in Swift designed for audiophiles who want precise control over music playback quality. It leverages the BASS audio library for playback, which is a mature and efficient audio engine supporting a wide variety of audio formats, including many lossless and high-resolution codecs like FLAC, DSD (DFF/DSF), APE, and WV.

For metadata extraction, it uses TagLib, a reliable library for reading tags from many audio file formats, which means the app can accurately display artist, album, track info, and more.

On the local library management front, HiFidelity uses GRDB, a robust Swift wrapper around SQLite. This choice not only provides a fast and stable database backend but also enables full-text search capabilities through SQLite’s FTS5 extension. This makes browsing and searching large music collections responsive and smooth.

The architecture is focused on full offline operation — from playback to library management — with zero telemetry or network dependencies. The app sandboxing complies with macOS security standards, which adds protection but also means it has to carefully manage file access through user permissions.

Technical highlights: Hog mode and audio fidelity tradeoffs

The standout technical feature is the use of macOS Hog mode. This mode requests exclusive control over the audio device, circumventing the system audio mixer. In practice, this means the app sends unaltered audio samples directly to the hardware, preserving bit-perfect fidelity. Most macOS audio applications do not attempt this because Hog mode requires careful handling of Core Audio APIs and can cause system audio interruptions if not managed properly.

This implementation is rare and worth understanding because it solves a real problem for audiophiles: the unwanted resampling and volume adjustments that occur in the usual Core Audio pipeline. HiFidelity also supports ReplayGain and EBU R128 loudness normalization, which are industry standards for volume leveling without introducing distortion.

The tradeoff here is that exclusive device access means no other app can play sound simultaneously. Also, Hog mode requires macOS Sonoma or later, limiting the app’s audience to users with the latest OS. The app is sandboxed but manages to integrate native C libraries (BASS and TagLib) effectively, which speaks to careful bridging between Swift and C.

Supporting over 10 audio formats, including niche and high-res ones like DSD, shows the app’s focus on serious audiophiles. The inclusion of gapless playback addresses a common pain point where track transitions break the listening experience.

The codebase, as seen in the README and dependencies, is focused and minimalistic. Using GRDB for SQLite ensures the database layer is reliable and performant without reinventing the wheel. The use of TagLib and BASS avoids the complexity of building audio decoding and metadata extraction from scratch.

Quick start: installation and first launch

HiFidelity supports straightforward installation on macOS 14+ with Apple Silicon or Intel Macs.

brew tap rvarunrathod/tap
brew install --cask rvarunrathod/tap/hifidelity

Download from Releases:

  • Download the latest signed macOS build from the Releases page.
  • Move HiFidelity.app to your Applications folder.

Note on Gatekeeper:

On first launch, macOS may show a warning about unverified software because the developer does not pay for Apple’s notarization service. You can bypass this by running:

xattr -d com.apple.quarantine /Applications/HiFidelity.app

Getting started:

  1. Open Settings → Library and add folders containing your music files.
  2. HiFidelity automatically scans and imports your music.
  3. Start playing your collection with bit-perfect quality.

Verdict: who should consider HiFidelity?

HiFidelity is a solid choice for macOS audiophiles who want a native, offline music player that prioritizes playback fidelity over bells and whistles. Its Hog mode implementation for exclusive audio device access is a technical highlight that most players don’t offer, making it valuable for users with high-end DACs and a critical ear.

The app’s reliance on macOS 14 and lack of network features means it’s not for casual users or those needing streaming or cloud sync. The zero telemetry approach respects privacy, but also means no remote diagnostics or usage analytics.

Overall, if you care about bit-perfect playback, support for a wide range of lossless and hi-res formats, and a clean, no-frills interface, HiFidelity is worth trying. The tradeoff is the exclusive device access and macOS version requirement, but for many audiophiles, that’s an acceptable price for pure sound quality.


→ GitHub Repo: rvarunrathod/HiFidelity ⭐ 239 · Swift