Hi,
I managed to input analog audio to Moode.
I've a Behringer UCA222 audio interface, it has stereo analog rca input/outputs.
I wanted to connect my cd player trough Moode to take advantage of resampling, equalization, etc.
Following and adapting the multiinputs method posted by Bitlab's here:
https://www.bitlab.nl/page_id=1103
The steps:
the OS must have detected the input,
you can check this by running in the ssh command line:
pi@moode:~ $ arecord -l
**** List of CAPTURE Hardware Devices ****
card 2: CODEC [USB Audio CODEC], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
-----------------------------------------
The details (for only one stereo input):
just create a text file in:
/etc/alsa/conf.d/input.conf
with this text:
pcm_slave.ins {
pcm "hw:2,0,0"
rate 44100
channels 2
}
pcm.input {
type dsnoop
ipc_key 12342
slave ins
bindings.0 0
bindings.1 1
}
Then, create a file in the playlist folder:
/var/lib/mpd/playlists/
analog.m3u
with this text:
#ETM3U
#EXTINF:-1, input 1
alsa://plug:input?format=44100:16:2
and voilá:
in the home screen, you will see
the defaults and the new input:
SDCARD
USB
analog
default playlist
favorites
just click on "analog" and then in songfile / play
and the audio from your new created input (my cd player in my case)
is streamed thru Moode.
(In the main screen you will see something like:
Unknown album • File does not exist
Unknown album
plug:input?format=44100:16:2null)
Hoping this help someone who wants this funcionality
in Moode.
And thanks Tim for an excellent job doing Moode.
Pedro