mike_b16 wrote: 
> Now, will I definitely need to modify your plugin to achieve this, or is
> it just a possibility? Does WaveInput have some kind of downsampling
> built in if the input is above that 16/44.1 mark?

I'm worried that you don''t understand how LMS works.   LMS does all the
audio processing to match and audio stream to a player capabilities
(i.e. transcode and/or downsample as necessary).  The "rules"in the
convert.,conf and custom-convert.conf file will tell LMS how to do the
necessary conversion. 

So 
1. When LMS wants to start an audio stream, it needs to be told the
stream format - the current WaveInput plugin uses the default 44.1/16. 
If you to have other values you need to provide the audio format info by
adding a parseMetadata routine that will be called by LMS.   You may
also need additional processing of the URL depending on how you encode
in the URL the stream formats characteristics. If you plan on supporting
mulitple formats from the card then I suspect you need let the
custom-convert.conf file call a shell script which analyses the
parameters (derived from the URL) and then calls arecord with the
relevant device and parameters. I suggest encoding the data format in
the wavin URL (e.g. wavin:my192-24 or wavin:hw:2,0?speed=192&size=24). 
If you are capturing multiplex streams to be forwarded I suspect you
will need extra wrapping of the data.  

2.I'm not too sure about downsampling and so you'll need to look at
other threads but  users tell LMS that downsampling is supported for a
rule using the "D" capability in the convert.conf/custom-convert.conf
and rates are passed using %d/%D.  You'll need to use these values to
enable and setup downsampling with something like sox.


------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=102551

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

Reply via email to