Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Instruction Guide USB Streaming
#9
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


Attached Files Thumbnail(s)
   
Reply


Messages In This Thread
USB Streaming - by Meestor_X - 03-21-2022, 09:29 PM
RE: USB Streaming - by DRONE7 - 03-21-2022, 09:35 PM
RE: USB Streaming - by Meestor_X - 03-21-2022, 09:40 PM
RE: USB Streaming - by Relocated2007 - 03-22-2022, 07:37 AM
RE: USB Streaming - by Meestor_X - 03-22-2022, 05:41 PM
RE: USB Streaming - by DRONE7 - 03-22-2022, 06:16 PM
RE: USB Streaming - by cheapvega - 03-26-2022, 04:31 PM
RE: USB Streaming - by Tim Curtis - 03-26-2022, 05:24 PM
RE: USB Streaming - by soypeter - 01-15-2023, 10:11 PM

Forum Jump: