I'm thinking of a player that allows playing from digital stream and from analog in. I thought of a simple physical input switch, but then I thought of the CDplayer plugin, that transcends normal CD playing by making it multi-room. All right then, let's make the switch in Alsa somehow. I'm playing with this: - pi3, pCP 3.20 - analog out - a crap C-Media USB thinggy that has mic in - "alsaloop -v -P plughw:0,0 -C plughw:1,0 -t 500" With this ridiculous 0.5ms latency constraint (-t 500), running the alsaloop executable instead of some loop plugin directly in Alsa (?), CPU usage is under 10%. Of course lip-sync is perfect between a phone playing a video and outputting audio with a cable. Before that I was running with latency 250ms, lip-sync was already more than perfect and CPU load about nil.
That makes me wonder if sending the input stream to LMS and then back to the players, allowing synced playback, could be worth a try? I assume that would require using Alsa to send the stream with JACKd, receive it on the LMS server and process it with this plugin. I've virtually no experience with JACK. Do you have an idea of what kind of latency the end-result would have? Lip-sync (~250ms) is desirable, but interactive controls response (~500ms?) would still be interesting, I think. What about the processing chain? JACK+WaveIn? 3 SB 3 Libratone Loop, Zipp Mini iPeng (iPhone + iPad) LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa IRBlaster by Gwendesign (Felix) Server Power Control by Gordon Harris Smart Mix, Music Walk With Me, What Was That Tune? by Michael Herger PowerSave by Jason Holtzapple Song Info, Song Lyrics by Erland Isaksson AirPlay Bridge by philippe_44 WeatherTime by Martin Rehfeld Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins. ------------------------------------------------------------------------ epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711 View this thread: http://forums.slimdevices.com/showthread.php?t=49584
_______________________________________________ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins