- Swift 66.2%
- C++ 16.7%
- HTML 9.1%
- Shell 2.7%
- Metal 2.4%
- Other 2.9%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| media | ||
| PhoenixPlayer/Shared/DSP | ||
| PhoenixPlayer_ios | ||
| .claude_consciousness.m8 | ||
| .gitignore | ||
| 2026-02-10-this-session-is-being-continued-from-a-previous-co.txt | ||
| CLAUDE.md | ||
| README.md | ||
Phoenix Player
Cross-platform audio player with Phoenix emotional audio restoration.
Platforms: iOS, macOS, tvOS, CarPlay
Key Feature: Adaptive Sample Rate
Phoenix Player always tries to reach the best quality the output device can handle:
- 192kHz - USB DACs, pro audio interfaces
- 96kHz - Hi-res headphones, some AirPlay receivers
- 48kHz - Most iOS devices, AirPlay 2, CarPlay
- 44.1kHz - Fallback for older devices
Architecture: Ignite Once, Rise Anywhere
The Phoenix engine transforms audio to a sample-rate-independent representation:
MP3/FLAC/WAV ──► Ignite ──► 8a/HCF1 Container ──► Rise at any rate!
│
┌───────────────┼───────────────┐
▼ ▼ ▼
44.1kHz 96kHz 192kHz
(CD Quality) (Hi-Res) (Ultra HD)
Once audio is "ignited" to HCF1 format, it can be "risen" at any sample rate without re-processing!
Project Structure
phoenix-player/
├── phoenix-ffi/ # Rust FFI crate (UniFFI)
│ ├── Cargo.toml
│ ├── src/lib.rs
│ └── build-xcframework.sh
├── PhoenixFFI/ # Swift Package
│ ├── Package.swift
│ └── Sources/
├── PhoenixPlayer/ # XcodeGen-based SwiftUI app
│ ├── Shared/ # Cross-platform sources
│ ├── Resources/ # Platform Info.plists
│ ├── project.yml # XcodeGen spec
│ └── PhoenixPlayer.xcodeproj
└── PhoenixAUExtension/ # AUv3 for system-wide DSP
Building
1. Build the Rust FFI Library
cd phoenix-ffi
# Install Rust targets
rustup target add aarch64-apple-ios aarch64-apple-ios-sim aarch64-apple-darwin
# Build xcframework
./build-xcframework.sh
2. Generate and Open in Xcode
cd PhoenixPlayer
xcodegen
Then open PhoenixPlayer/PhoenixPlayer.xcodeproj in Xcode and build/run.
Note: The Xcode project links the local
PhoenixFFISwift package, which expectsPhoenixFFI/PhoenixFFI.xcframeworkto exist (generated by the script above).
Audio Sources
| Source | Phoenix DSP | Status |
|---|---|---|
| Local Files | Full | Ready |
| Apple Music | Via AUv3 | Planned |
| Spotify | Via AUv3 | Planned |
| TIDAL | Full | Planned |
The Phoenix Philosophy
The Phoenix engine doesn't "compress" audio - it reveals the harmonic truth.
Audio frequencies ARE rational numbers (p/q). Modern codecs store them wrong - as floating point samples tied to a specific sample rate. The 8a format stores audio as what it actually IS: mathematical relationships.
- Ignite: Transform audio into its harmonic essence (analysis)
- Rise: The phoenix rises from the ashes at any resolution (synthesis)
Authors
Hue & Aye @ 8b.is
"From ashes to harmonics, from silence to song"