Moode Forum
[How to do instruction] USB Streaming - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7)
+--- Thread: [How to do instruction] USB Streaming (/showthread.php?tid=4794)



USB Streaming - Meestor_X - 03-21-2022

Can I select a USB Audio device as an input source to Moode?

e.g. connect a device with a class-compliant USB audio connection to Moode and have it send the audio out the RPI audio outputs?


RE: USB Streaming - DRONE7 - 03-21-2022

Have a read through this thread..
https://moodeaudio.org/forum/showthread.php?tid=4768


RE: USB Streaming - Meestor_X - 03-21-2022

Thank you for your reply. I don't know what CamillaDSP is, hard to tell from that thread whether there's an answer.
It SEEMS like some sort of arecord command might make it work? Any dumbed-down or step-by-step method of getting there?


RE: USB Streaming - Relocated2007 - 03-22-2022

(03-21-2022, 09:29 PM)Meestor_X Wrote: Can I select a USB Audio device as an input source to Moode?

e.g. connect a device with a class-compliant USB audio connection to Moode and have it send the audio out the RPI audio outputs?

Yes, you can. I connected RP4 USB to my ROTEL USB-pc input and after some fiddling, with proper settings on ROTEL I have a nice sounding streamer with moode. Usually, plug cable to pi and DAC (must be turned on), reboot pi and the magic of Linux drivers should do the job hopefully ;-).


RE: USB Streaming - Meestor_X - 03-22-2022

(03-22-2022, 07:37 AM)Relocated2007 Wrote:
(03-21-2022, 09:29 PM)Meestor_X Wrote: Can I select a USB Audio device as an input source to Moode?

e.g. connect a device with a class-compliant USB audio connection to Moode and have it send the audio out the RPI audio outputs?

Yes, you can. I connected RP4 USB to my ROTEL USB-pc input and after some fiddling, with proper settings on ROTEL I have a nice sounding streamer with moode. Usually, plug cable to pi and DAC (must be turned on), reboot pi and the magic of Linux drivers should do the job hopefully ;-).

Very cool! I wonder if it will work with an iPhone as the source device?


RE: USB Streaming - DRONE7 - 03-22-2022

Hold up there..!

@Meestor_X  is asking about sending music from a device via USB into a RPi. 
This is not currently available from either Stock Raspbian or MoOde though some experimental methods are mentioned in the thread I linked earlier.

@Relocated2007 is discussing sending music from a RPi to another device (Rotel amplifier)


RE: USB Streaming - cheapvega - 03-26-2022

Are there any other ways to get an analog input into the RPi? I2S hat maybe?


RE: USB Streaming - Tim Curtis - 03-26-2022

moOde provides integrated input switching for two devices:

1. Hifiberry DAC+ ADC (analog input)
2. Audiophonics 9028/9038 DAC (S/PDIF input)

For those two audio devices the "Input source" screen in moOde is used to switch between Local (MPD) and the device's analog or S/PDIF input.

[attachment=2744]


RE: USB Streaming - soypeter - 01-15-2023

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