Documentation
¶
Overview ¶
ABOUTME: Entry point for Sendspin Protocol player ABOUTME: Parses CLI flags and starts the player application
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
ma-player
command
ABOUTME: Entry point for Music Assistant compatible player ABOUTME: Uses internal/ stack with legacy protocol support
|
ABOUTME: Entry point for Music Assistant compatible player ABOUTME: Uses internal/ stack with legacy protocol support |
|
sendspin-server
command
ABOUTME: Entry point for Sendspin Protocol server ABOUTME: Thin CLI wrapper around pkg/sendspin.Server with TUI support
|
ABOUTME: Entry point for Sendspin Protocol server ABOUTME: Thin CLI wrapper around pkg/sendspin.Server with TUI support |
|
test-sync
command
ABOUTME: Test app to verify clock sync workaround ABOUTME: Fakes monotonic clock sync by pretending to match server uptime
|
ABOUTME: Test app to verify clock sync workaround ABOUTME: Fakes monotonic clock sync by pretending to match server uptime |
|
examples
|
|
|
basic-player
command
ABOUTME: Basic Sendspin player example ABOUTME: Demonstrates how to connect to a server and play audio
|
ABOUTME: Basic Sendspin player example ABOUTME: Demonstrates how to connect to a server and play audio |
|
basic-server
command
ABOUTME: Basic Sendspin server example ABOUTME: Demonstrates how to create a simple streaming server
|
ABOUTME: Basic Sendspin server example ABOUTME: Demonstrates how to create a simple streaming server |
|
custom-source
command
ABOUTME: Custom AudioSource implementation example ABOUTME: Demonstrates how to create custom audio sources for Sendspin
|
ABOUTME: Custom AudioSource implementation example ABOUTME: Demonstrates how to create custom audio sources for Sendspin |
|
internal
|
|
|
app
ABOUTME: Main player application orchestration ABOUTME: Coordinates all components (connection, audio, UI)
|
ABOUTME: Main player application orchestration ABOUTME: Coordinates all components (connection, audio, UI) |
|
artwork
ABOUTME: Artwork downloader for album art and metadata images ABOUTME: Downloads images from URLs and saves to temp directory
|
ABOUTME: Artwork downloader for album art and metadata images ABOUTME: Downloads images from URLs and saves to temp directory |
|
audio
ABOUTME: Multi-codec audio decoder ABOUTME: Supports Opus, FLAC, and PCM formats
|
ABOUTME: Multi-codec audio decoder ABOUTME: Supports Opus, FLAC, and PCM formats |
|
client
ABOUTME: WebSocket client for Sendspin Protocol communication ABOUTME: Handles connection, handshake, and message routing
|
ABOUTME: WebSocket client for Sendspin Protocol communication ABOUTME: Handles connection, handshake, and message routing |
|
discovery
ABOUTME: mDNS service discovery for Sendspin Protocol ABOUTME: Handles both advertisement (server-initiated) and browsing (client-initiated)
|
ABOUTME: mDNS service discovery for Sendspin Protocol ABOUTME: Handles both advertisement (server-initiated) and browsing (client-initiated) |
|
player
ABOUTME: Timestamp-based playback scheduler ABOUTME: Schedules audio buffers for precise playback timing
|
ABOUTME: Timestamp-based playback scheduler ABOUTME: Schedules audio buffers for precise playback timing |
|
protocol
ABOUTME: DEPRECATED - Use pkg/protocol instead ABOUTME: Legacy message types kept for backward compatibility tests
|
ABOUTME: DEPRECATED - Use pkg/protocol instead ABOUTME: Legacy message types kept for backward compatibility tests |
|
server
ABOUTME: Audio streaming engine for Sendspin server ABOUTME: Generates test tones and streams timestamped audio to clients
|
ABOUTME: Audio streaming engine for Sendspin server ABOUTME: Generates test tones and streams timestamped audio to clients |
|
sync
ABOUTME: Clock synchronization with drift compensation ABOUTME: Tracks both offset AND drift to handle clock frequency differences
|
ABOUTME: Clock synchronization with drift compensation ABOUTME: Tracks both offset AND drift to handle clock frequency differences |
|
ui
ABOUTME: Bubbletea model for player TUI ABOUTME: Defines application state and update logic
|
ABOUTME: Bubbletea model for player TUI ABOUTME: Defines application state and update logic |
|
version
ABOUTME: Version information for the player ABOUTME: Used in device_info sent during handshake
|
ABOUTME: Version information for the player ABOUTME: Used in device_info sent during handshake |
|
pkg
|
|
|
audio
ABOUTME: Audio fundamentals package providing core types and utilities ABOUTME: Defines Format, Buffer types and sample conversion functions Package audio provides fundamental audio types and utilities for hi-res audio processing.
|
ABOUTME: Audio fundamentals package providing core types and utilities ABOUTME: Defines Format, Buffer types and sample conversion functions Package audio provides fundamental audio types and utilities for hi-res audio processing. |
|
audio/decode
ABOUTME: Decoder interface definition ABOUTME: Common interface for all audio decoders
|
ABOUTME: Decoder interface definition ABOUTME: Common interface for all audio decoders |
|
audio/encode
ABOUTME: Audio encoder package for encoding PCM to various formats ABOUTME: Provides Encoder interface and implementations for PCM, Opus Package encode provides audio encoders for various codecs.
|
ABOUTME: Audio encoder package for encoding PCM to various formats ABOUTME: Provides Encoder interface and implementations for PCM, Opus Package encode provides audio encoders for various codecs. |
|
audio/output
ABOUTME: Audio output package for playing audio ABOUTME: Provides Output interface with malgo implementation Package output provides audio playback interfaces.
|
ABOUTME: Audio output package for playing audio ABOUTME: Provides Output interface with malgo implementation Package output provides audio playback interfaces. |
|
audio/resample
ABOUTME: Audio resampling package using linear interpolation ABOUTME: Converts audio between different sample rates Package resample provides audio sample rate conversion.
|
ABOUTME: Audio resampling package using linear interpolation ABOUTME: Converts audio between different sample rates Package resample provides audio sample rate conversion. |
|
discovery
ABOUTME: mDNS service discovery package ABOUTME: Discover and advertise Resonate servers on local network Package discovery provides mDNS service discovery for Resonate servers.
|
ABOUTME: mDNS service discovery package ABOUTME: Discover and advertise Resonate servers on local network Package discovery provides mDNS service discovery for Resonate servers. |
|
protocol
ABOUTME: WebSocket client for Sendspin Protocol communication ABOUTME: Handles connection, handshake, and message routing
|
ABOUTME: WebSocket client for Sendspin Protocol communication ABOUTME: Handles connection, handshake, and message routing |
|
sendspin
ABOUTME: High-level Sendspin library API ABOUTME: Provides simple Player and Server APIs for most use cases Package sendspin provides high-level APIs for Sendspin audio streaming.
|
ABOUTME: High-level Sendspin library API ABOUTME: Provides simple Player and Server APIs for most use cases Package sendspin provides high-level APIs for Sendspin audio streaming. |
|
sync
ABOUTME: Clock synchronization using Kalman time filter ABOUTME: Tracks offset and drift between client and server clocks
|
ABOUTME: Clock synchronization using Kalman time filter ABOUTME: Tracks offset and drift between client and server clocks |
Click to show internal directories.
Click to hide internal directories.