Claude 69cb3eb80a Fix stream_block buffer cycling issue with FFPlay
PROBLEM:
When streaming Radio Paradise blocks via HTTP using FFPlay, the buffer
would cycle between 0KB and ~130KB approximately once per second, causing
audio dropouts and interruptions. VLC worked fine, but FFPlay was sensitive
to the burst transmission pattern.

ROOT CAUSE:
In StreamingFlacSink::broadcast_flac_stream(), the broadcaster was reading
8KB (8192 bytes) at a time from the FLAC encoder and sending the entire
chunk at once to all HTTP clients. This created a "burst" pattern:
- Read 8KB from encoder
- Send entire 8KB chunk to all clients
- Sleep if ahead of real-time pacing
- Repeat

FFPlay's buffer would fill rapidly with each 8KB burst, then drain completely
before the next burst arrived, causing the observed cycling behavior.

SOLUTION:
Reduced the HTTP broadcast buffer size from 8KB to 512 bytes in
StreamingFlacSink::broadcast_flac_stream(). This creates a much smoother,
more continuous data flow that FFPlay can handle without buffer cycling.

The 512-byte buffer size is:
- Small enough to prevent burst transmission
- Large enough to avoid excessive overhead
- Sufficient for smooth streaming with real-time pacing

CHANGES:
- Restore stream_block.rs example from git history
- Restore StreamingFlacSink and StreamingOggFlacSink from git history
- Add "streaming" feature to pmoaudio-ext
- Reduce broadcast buffer from 8192 to 512 bytes
- Update pmoparadise to use pmoaudio-ext streaming feature

TESTING:
Test with FFPlay to verify smooth buffering:
```bash
cargo run --example stream_block --features full -- 0
# In another terminal:
ffplay http://localhost:8080/test/stream
```

Watch the "aq=" value in FFPlay output. It should now remain stable
instead of cycling between 0KB and 130KB.
2025-11-13 06:59:27 +00:00
2025-11-03 14:45:37 +01:00
2025-09-07 12:14:50 +02:00
2025-10-05 22:03:13 +02:00
2025-09-06 17:45:28 +02:00
2025-10-29 22:36:36 +01:00
2025-10-29 22:35:53 +01:00
2025-10-29 22:35:53 +01:00
2025-11-03 14:45:37 +01:00
2025-11-03 14:45:37 +01:00
2025-10-05 22:03:13 +02:00
2025-10-20 19:50:58 +02:00
2025-11-03 14:45:37 +01:00
2025-11-03 14:45:37 +01:00
2025-10-05 22:03:13 +02:00

Développement de l'application PMOMusic en RUST

Création de la structure

mkdir pizzicato
cd pizzicato
jj git init
touch Readme.md

Maintenant on peu créer l'application PMOMusic

cargo new PMOMusic

On ajoute un fichier Cargo.toml décrivant le workspace pizzicato qui ne contient que notre nouvelle application

[workspace]
members = ["PMOMusic"]

On crée le package pmoupnp

cargo new  pmoupnp --lib

Cela modifie automatiquement le fichier Cargo.toml créé juste avant. Dans ce package un sous module statevariable

cd pmoupnp/src
mkdir statevariable

Petite expériences jujutsu

  • Je veux voir l'historique
jj log
@  lkmlpmnk eric@coissac.eu 2025-09-12 09:48:38 a27b6a9a
│  On commence les states variables
○  mzvokmpk eric@coissac.eu 2025-09-12 09:32:27 926827f3
│  Retire le répertoir target du suivi
○  skknrvut eric@coissac.eu 2025-09-12 09:05:27 cbad5c34
│  Initialisation des l'arborescence de répertoires
◆  zzzzzzzz root() 00000000
  • Je veux me mettre dans un commit:
jj edit mzvokmpk

je veux créer un nouveau commit à la suite d'un autre et m'y placer

jj new mzvokmpk

mzvokmpk peut être @ pour dans le commit courant ou @- pour dans le parent

  • je veux arreter de suivre
    • un fichier
jj file untrack <filename> 
  • un répertoire
find dirname -type f -exec jj file untrack {} \;

Dans tous les cas ne pas oublier d'inscrire le fichier ou le repertoire dans le .gitignore

  • je veux déplacer un commit comme un sous commit d'un aute
jj rebase -d destination -r source

eventuellement faire un

jj resolve --all
jj rebase --continue

pour résoudre les conflits

Installer rust sur mac

brew install rustup-init
rustup-init
rustup default stable
Description
No description provided
Readme 242 MiB
Languages
Rust 73%
HTML 11.6%
Vue 9.5%
TypeScript 2.6%
Python 1.3%
Other 1.9%