Moode Forum
[IDEA] Line input - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Feature requests (https://moodeaudio.org/forum/forumdisplay.php?fid=8)
+--- Thread: [IDEA] Line input (/showthread.php?tid=3981)

Pages: 1 2


Line input - robiwan - 07-06-2021

I'd like to be able to select an analog audio source with line input. Should be possible ?

/Robert


RE: Line input - Tim Curtis - 07-06-2021

It can be done within moOde via "Source select" config but only for Hifiberry DAC+ADC (Analog in) or Audiophonics 9028/9038 DAC (S/PDIF in) boards. These are the only 2 boards that have been integrated into the Source select feature.

Other boards that have switchable input would need to be controlled via command line for example by using amixer, alsamixer , etc commands or via manufacturer supplied utilities.


RE: Line input - robiwan - 07-06-2021

Ok, I have the AudioInjector Stereo (I2S board). Is it hard to integrate it into Source select feature?


RE: Line input - Tim Curtis - 07-06-2021

Takes non-trivial amount of work and testing because these boards all use different mechanisms to control input switching for example the Hifiberry board uses alsaloop while the Audiophonics board uses custom driver commands. This is why there are only two supported boards.


RE: Line input - robiwan - 07-06-2021

Could the same be achieved in a more hardware independent way with MPD? https://mpd.readthedocs.io/en/latest/plugins.html#input-plugins


RE: Line input - robiwan - 07-06-2021

Haha, by doing "mpc add alsa://hw:0,0" on cmd line, that "track" shows up in Moode and I can stream line input through mpd and my ladspa plugin! The latency is terrible though...


RE: Line input - Tim Curtis - 07-06-2021

The boards I mentioned earlier perform input switching, audio routing and conversion using mechanisms that are external to MPD for example the DAC+ADC has an on-board ADC chip. These boards are handled in moOde similar to the audio renderers like Airplay in that MPD is stopped and then the input source audio (renderer) starts playing. The only difference is that a pre-amp volume control is provided which controls the boards hardware volume controller.

[attachment=2408] [attachment=2407] [attachment=2405] [attachment=2406]


RE: Line input - robiwan - 11-03-2021

I found that the "Audio In" functionality is pretty much embedded in the webgui code, so it is not straightforward to add support for other cards. I'm willing to try to contribute to making "Audio In" functionality as an interface, where support for a new card requires just to implement a AudioIn interface. Not sure it is feasible... Smile


RE: Line input - Tim Curtis - 11-03-2021

The challenge is that there is no standard API for switching inputs on a given device for example Hifiberry DAC+ADC uses ALSA Loopback and alsaloop command while Audiophonics 9028/9038 DAC uses amixer (I2C) commands.


RE: Line input - robiwan - 11-03-2021

That is why it should be as an "interface" that Moode uses. Each card implements the switching as it needs to.