Fix play_and_cache example: enable pmoconfig feature for PlaylistManager

- Add pmoconfig to the 'full' feature so PlaylistManager can auto-initialize
- Update play_and_cache example to use AudioSink::new() without volume
- Remove unused PlaylistManager import

Without pmoconfig feature enabled, PlaylistManager::get() fails with
"PlaylistManager not initialized" error.
This commit is contained in:
Claude
2025-11-05 19:44:38 +00:00
parent df06bc74fd
commit a0b6463273

View File

@@ -91,7 +91,7 @@ cache = []
# Active le support pmoaudio node (RadioParadiseStreamSource) # Active le support pmoaudio node (RadioParadiseStreamSource)
pmoaudio = ["dep:pmoaudio", "dep:pmoflac", "dep:pmometadata", "dep:futures-util"] pmoaudio = ["dep:pmoaudio", "dep:pmoflac", "dep:pmometadata", "dep:futures-util"]
# Active le support complet avec playlist (pour les exemples avancés) # Active le support complet avec playlist (pour les exemples avancés)
full = ["pmoaudio", "dep:pmoaudio-ext"] full = ["pmoaudio", "dep:pmoaudio-ext", "pmoconfig"]
[dev-dependencies] [dev-dependencies]
# Tests # Tests