Layered System Architecture
Comprehensive breakdown of Shiddat system architecture: UI composition, audio decoding, offline SQLite persistence, and native C++ DSP computation.
Tag: v1.10.0Branch: mainGo 1.22 + WebSocketsC++17 NDK 27CC0-1.0
System ArchitectureIMPLEMENTED
Under the interface.
Shiddat is structured as a layered system where UI components remain completely isolated from playback state, cloud network failures never interrupt local audio, and native C++ handles high-throughput audio computation.
Select Architecture Layer to Inspect:
Playback & Audio Engine
Android Media3 • ExoPlayer • MediaSession
Low-latency playback architecture decoupling audio decoding from UI lifecycles through a persistent Android foreground media session service.
Core Responsibilities & Implementation Details:
True 0–12 second gapless crossfade with custom sinusoidal curves
32-bit float software DSP chain with 10-band equalizer and volume leveling
System audio focus negotiation, Bluetooth sink tracker, and auto-pause on headphone unplug
Multi-source stream resolver falling back to YouTube audio when lossless sources are unreachable
Representative Repository Code Files:
file:///app/src/main/java/com/music/raaga/playback/PlaybackService.kt
file:///app/src/main/java/com/music/raaga/playback/audio/PrecisionAudioSink.kt
file:///app/src/main/java/com/music/raaga/playback/audio/FloatDspChain.kt