soundcheck wrote: 
> That's what I do all the time. The local squeezelite client on the
> Cubitruck runs PCM only. And the server decodes the flac. The
> squeezelite streaming buffer is set to 80MB. 
> This way LMS decodes the flac all at once (depending on the file size
> obviously. There's plenty of RAM left on the CT to even increase the
> streaming buffer. Note: SL though causes  track handling problems, if
> more then one track fits into the streaming buffer - I mentioned that
> before - for me it's OK though.).
> 
> Above leaves me with a 5-6% peak-load for the the first couple seconds
> (<5s I'd guess) and for the rest of track playback I look at neglectable
> <0.3% CPU load (LMS + SL). 
> 
> If I wouldn't use a large SL streaming buffer, I'd have a continous
> flac-decoding thread going and a continous load of approx. 2-3%! Which
> is obviously roughly ten times higher then my optimized setup!
> 
> 
> Coming from above, I would like to feed  my tablets/phones with a
> "native" flac stream to avoid PCM-over-air. Question was: How do I
> accomplish both scenarios at the same time?
> 
> Cheers

So I think the easiest way to make this work is for the server to
believe that squeezelite doesn't support flac.  This way the normal
processing for flac will work for other devices.  Start squeezelite with
-c pcm.

If you want to decode all at once with squeezelite you could try the
ouput buffer being very large.  The decode thread for pcm is optimised
for least work but it runs all the time while there is data to process,
so if you want a cpu hit at the start of the track and then least cpu,
setting the output buffer large would be the way to go.  However this
uses 8 bytes per frame, whereas the stream buffer will only use 4 bytes
per frame if you are playing 16 bit so it is probably the more efficient
use of memory.


------------------------------------------------------------------------
Triode's Profile: http://forums.slimdevices.com/member.php?userid=17
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to