push-ypsvkxoknpsz #160

Merged
eric merged 37 commits from push-ypsvkxoknpsz into main 2026-10-23 23:17:19 +02:00
Owner
No description provided.
eric added 37 commits 2026-10-23 23:15:50 +02:00
This commit introduces a major architectural refactoring, moving core components under the `emitter` module namespace. This includes significant updates to the PTP engine, simplifying pairing logic, and redefining clock synchronization rules for receivers. Additionally, synchronization primitives are integrated into the adapter layer, and new features are added for AirPlay receiver implementation, including WAV file output support.
Addresses timing concerns related to buffered audio emitters and PTP synchronization. Refactors cipher implementation to ensure mutualization and narrows the scope of supported codecs and features.
Refactor the audio pipeline by replacing control components and introducing ALAC decoding. This includes renaming pacing nodes, adopting new crate conventions, and implementing robust frame decoding logic with error handling and synchronization marker support. New utility functions and tests validate frame behavior and position tracking.
Introduces the dating module for the AirPlay 2 receiver, including the Anchor and Datation structs. This adds logic for calculating playback times based on master and local clocks, handles packet positioning relative to anchors, and includes extensive unit tests validating timing, overflow handling, and network time behavior.
Refactor the receiver side to include connection handling, channel encryption, and transient pairing capabilities. Introduce SRP server implementation and refine RTSP request/response serialization using binary plist decoding.
This change introduces the complete receiver backend, including TCP listeners, audio stream management, packet decryption, sequence reordering logic, and synchronization packet serialization. Comprehensive end-to-end tests validate stream setup, packet flow, error handling, and event reporting.
Formalizes the audio pipeline structure, introduces the AirPlay receiver source, implements robust handling for missing audio frames, and updates synchronization data models.
This commit introduces the core audio playback pipeline, including the `PcmOutput` trait, `ClockedSink`, and hardware-specific ALSA integration. It also implements PTP clock following logic for followers and refines stream handling within the receiver module to manage synchronization, timing, and audio segment playback accurately.
This change introduces the FairPlay server logic, receiver identity management, and robust player pipeline handling. It includes implementing FairPlay setup/handshake procedures, defining receiver identity structures, and integrating ALSA output with sink cancellation logic to ensure proper stream lifecycle management and graceful shutdown.
This commit introduces improvements to the receiver's error handling and event processing, including support for new stream connection IDs, and modifies the service startup environment configuration.
Adds core logic for handling synchronization and follow-up messages, defining the Exchange state structure, and implementing the mechanisms for delay requests and exchange completion. Includes tests verifying exchange conditions and sequence pairing.
This commit introduces core functionality for PTP synchronization, including new timing constants and logic for handling Sync and Follow-Up messages within the exchange flow. Additionally, volume control features are implemented, allowing for gain control and muting of audio output. Network address handling is also updated with new logic for describing and logging announced IPs.
Introduces support for buffered streams (Type 103), including new data models for audio formats (ALAC, AAC), asynchronous packet reading logic, and validation for packet integrity. Updates receiver backend logic to handle stream opening, packet decryption, and format identification.
Adds support for AAC encoding and decoding, refines stream lifecycle management, and introduces necessary testing infrastructure for flux, anchoring, and timing logic.
Introduces new PTP timing mechanisms including `ClockOffset`, `OffsetSmoother`, and `OffsetFilter` for reliable delay measurement. Updates peer state tracking to handle clock master changes and measured offsets.

Dependency updates are also applied across core packages.
This commit introduces new session control methods (`stop_streams`, `teardown`) and updates the network registration API in `pmoairplay`. It also refines session logic to correctly distinguish between stopping streams and terminating a session, alongside updating service implementation in `pmosound`.
This commit introduces new public API elements for audio playback, including playlist functionality and WebSocket support. It also implements server-side cache management within `pmoupnp` for covers and audio, updating the server initialization sequence.
This change introduces the core infrastructure for the UPnP server, including generic cache management, media source APIs, and the initialization sequence for the HTTP server and SSDP discovery.
Introduces the media renderer registry, asynchronous multiroom startup, and the control bridge for managing renderer lifecycle and transport events. Updates dependency configuration and exposes new API surfaces for pipeline control.
Refactor the PMO cache and server APIs, introduce URL rebasing logic for cover URLs, update server networking features, and refine testing infrastructure.
Introduce the complete queue data model, complex navigation, playback modes, and shared queue functionality. This includes defining item structures, mutation methods, state snapshots, and ensuring fault-tolerant, non-blocking event delivery.
This change centralizes event publishing logic within `pmoqueue` and updates the public API contract for event consumers. It also introduces the `TrackMetadata` data model, implements caching within the queue structure, and updates project dependencies.
Introduces the `MemoryTrackMetadata` structure and associated accessors, refining how track metadata is extracted, converted, and managed across the system.

Implements DIDL generation logic for playback tracking and enhances stream detection by adding fallback mechanisms.

Enhances queue management with caching and detailed XML generation for playback items.
Introduces feature gating for PMOServer and implements container entry logic, ensuring that media entry metadata (title, duration, track number) is correctly parsed and album art URIs are properly rebased.
Refactors the queue system by introducing the `QueueBackend` trait and enhancing queue manipulation methods for replacement and synchronization. Introduces new data models for queue snapshots and error reporting.

Implements `QueueTransportControl` for various renderers, refining playback item handling, stream detection logic, and queue state management for specific renderer backends.
This commit implements a significant overhaul of the event handling system, migrating event buses, introducing asynchronous I/O via Tokio, and implementing a comprehensive device registry and stream refresh watchdog. This includes decoupling queue logic, modifying event publishing contracts, and establishing new mechanisms for media server and renderer event processing.
This commit updates various dependencies, including `utoipa` and `xmltree`, and adjusts workspace configurations for `serde` and `quick-xml`.
Adds new components like CardOutput and Arbiter for managing card and face interaction. Refines ClockedSink handling, defines behaviors for Stopped/Paused states, and introduces new configuration options for fine-grained control.
This commit introduces the full sound system architecture, including the Card, Sink, Volume, and Face components. It finalizes playback logic, including dynamic sample rate changes, volume fidelity handling (software vs hardware), and device management via the Arbiter.
This commit introduces improvements to stream packet handling and playback state management. Changes include making the stream receiver more robust by explicitly handling errors and tracking rejected packets. Playback logic is refined to correctly calculate track start times after seeking, and new tests are added for audio format defaults and paced playback behavior.
Introduce new configuration constants for latency and rendering delay, update stream initialization to use dynamic latency values, and enhance source core handling for lost packets.

Add synchronization tracking metrics to the clocked sink, including periodic reporting, and update configuration parsing to handle defaults and timeouts robustly.
This commit introduces complex delay calculation logic for emitters and implements 250ms compensation for receiver stream anchoring. Additionally, it adds validation constraints to configuration settings and enhances testing coverage for edge cases like absent receivers and invalid configurations.
Standardizes queue operations across all backends by delegating to MusicQueue::lock. Introduces track enrichment, conditional stream refreshing, and robust mutex poisoning handling.
Introduces logic for gapless audio support, defines minimum latency requirements, and implements state management for packet reordering and gap detection within the receiver stream.
Adds support for FLAC, MP3, Ogg, and Opus decoding structures to the public API. Introduces stream seeking capabilities for FLAC files, including header parsing and seeking logic. Enhances `UriSource` to handle local file streams and HTTP range requests, ensuring proper stream skipping and error handling. Includes comprehensive tests for seeking behavior and stream source operations.
Introduces the core seeking API, including format-specific planners for FLAC, MP3, WAV, Ogg, and WebM/Opus. Expands the public API with new encoding, transcode, and seeking modules, enabling precise stream resumption across supported audio formats.
Integrate new PMO Sound modules and update service configuration
All checks were successful
Release / create-release (push) Successful in 11s
Release / apk (push) Successful in 4m10s
73f44b1520
This commit introduces a large set of new modules into the Docker image, including various sound and media components. It also adds the `pmosound.service` systemd unit, configuring it with necessary dependencies, capabilities, and restart policies for PMO Sound functionality.
eric merged commit b93b0ef4de into main 2026-10-23 23:17:19 +02:00
eric deleted branch push-ypsvkxoknpsz 2026-10-23 23:17:24 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
pmo/pmomusic!160
No description provided.