Thank you for your donation!


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


Instruction Guide 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi
yes , selected and reboot

this is aplay -l results:

Code:
pi@moode:~/cava $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
 Subdevices: 7/7
 Subdevice #0: subdevice #0
 Subdevice #1: subdevice #1
 Subdevice #2: subdevice #2
 Subdevice #3: subdevice #3
 Subdevice #4: subdevice #4
 Subdevice #5: subdevice #5
 Subdevice #6: subdevice #6
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 IEC958/HDMI [bcm2835 IEC958/HDMI]
 Subdevices: 1/1
 Subdevice #0: subdevice #0
card 0: ALSA [bcm2835 ALSA], device 2: bcm2835 IEC958/HDMI1 [bcm2835 IEC958/HDMI1]
 Subdevices: 1/1
 Subdevice #0: subdevice #0
card 1: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM]
 Subdevices: 8/8
 Subdevice #0: subdevice #0
 Subdevice #1: subdevice #1
 Subdevice #2: subdevice #2
 Subdevice #3: subdevice #3
 Subdevice #4: subdevice #4
 Subdevice #5: subdevice #5
 Subdevice #6: subdevice #6
 Subdevice #7: subdevice #7
card 1: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM]
 Subdevices: 8/8
 Subdevice #0: subdevice #0
 Subdevice #1: subdevice #1
 Subdevice #2: subdevice #2
 Subdevice #3: subdevice #3
 Subdevice #4: subdevice #4
 Subdevice #5: subdevice #5
 Subdevice #6: subdevice #6
 Subdevice #7: subdevice #7

this is aplay -L

Code:
pi@moode:~/cava $ aplay -L
null
   Discard all samples (playback) or generate zero samples (capture)
btaplay_dmix
alsaequal
plug_alsaequal
btstream
crossfeed
plug_bs2b
eqfa4p
plug_eqfa4p
invpolarity
default:CARD=ALSA
   bcm2835 ALSA, bcm2835 ALSA
   Default Audio Device
sysdefault:CARD=ALSA
   bcm2835 ALSA, bcm2835 ALSA
   Default Audio Device
dmix:CARD=ALSA,DEV=0
   bcm2835 ALSA, bcm2835 ALSA
   Direct sample mixing device
dmix:CARD=ALSA,DEV=1
   bcm2835 ALSA, bcm2835 IEC958/HDMI
   Direct sample mixing device
dmix:CARD=ALSA,DEV=2
   bcm2835 ALSA, bcm2835 IEC958/HDMI1
   Direct sample mixing device
dsnoop:CARD=ALSA,DEV=0
   bcm2835 ALSA, bcm2835 ALSA
   Direct sample snooping device
dsnoop:CARD=ALSA,DEV=1
   bcm2835 ALSA, bcm2835 IEC958/HDMI
   Direct sample snooping device
dsnoop:CARD=ALSA,DEV=2
   bcm2835 ALSA, bcm2835 IEC958/HDMI1
   Direct sample snooping device
plughw:CARD=ALSA,DEV=0
   bcm2835 ALSA, bcm2835 ALSA
   Hardware device with all software conversions
plughw:CARD=ALSA,DEV=1
   bcm2835 ALSA, bcm2835 IEC958/HDMI
   Hardware device with all software conversions
plughw:CARD=ALSA,DEV=2
   bcm2835 ALSA, bcm2835 IEC958/HDMI1
   Hardware device with all software conversions
hw:CARD=ALSA,DEV=0
   bcm2835 ALSA, bcm2835 ALSA
   Direct hardware device without any conversions
hw:CARD=ALSA,DEV=1
   bcm2835 ALSA, bcm2835 IEC958/HDMI
   Direct hardware device without any conversions
hw:CARD=ALSA,DEV=2
   bcm2835 ALSA, bcm2835 IEC958/HDMI1
   Direct hardware device without any conversions
default:CARD=Loopback
   Loopback, Loopback PCM
   Default Audio Device
sysdefault:CARD=Loopback
   Loopback, Loopback PCM
   Default Audio Device
front:CARD=Loopback,DEV=0
   Loopback, Loopback PCM
   Front speakers
surround21:CARD=Loopback,DEV=0
   Loopback, Loopback PCM
   2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Loopback,DEV=0
   Loopback, Loopback PCM
   4.0 Surround output to Front and Rear speakers
surround41:CARD=Loopback,DEV=0
   Loopback, Loopback PCM
   4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Loopback,DEV=0
   Loopback, Loopback PCM
   5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Loopback,DEV=0
   Loopback, Loopback PCM
   5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Loopback,DEV=0
   Loopback, Loopback PCM
   7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
dmix:CARD=Loopback,DEV=0
   Loopback, Loopback PCM
   Direct sample mixing device
dmix:CARD=Loopback,DEV=1
   Loopback, Loopback PCM
   Direct sample mixing device
dsnoop:CARD=Loopback,DEV=0
   Loopback, Loopback PCM
   Direct sample snooping device
dsnoop:CARD=Loopback,DEV=1
   Loopback, Loopback PCM
   Direct sample snooping device
plughw:CARD=Loopback,DEV=0
   Loopback, Loopback PCM
   Hardware device with all software conversions
plughw:CARD=Loopback,DEV=1
   Loopback, Loopback PCM
   Hardware device with all software conversions
hw:CARD=Loopback,DEV=0
   Loopback, Loopback PCM
   Direct hardware device without any conversions
hw:CARD=Loopback,DEV=1
   Loopback, Loopback PCM
   Direct hardware device without any conversions




and this is alsa-base.conf

Code:
options snd_bcm2835 index=0
options snd-aloop index=1

this is mpd.conf

Code:
#########################################
# This file is automatically generated
# by the MPD configuration page.
#########################################

music_directory "/var/lib/mpd/music"
playlist_directory "/var/lib/mpd/playlists"
db_file "/var/lib/mpd/database"
log_file "/var/log/mpd/log"
pid_file "/var/run/mpd/pid"
state_file "/var/lib/mpd/state"
sticker_file "/var/lib/mpd/sticker.sql"
user "mpd"
group "audio"
bind_to_address "any"
port "6600"
log_level "default"
restore_paused "yes"
auto_update "no"
follow_outside_symlinks "yes"
follow_inside_symlinks "yes"
zeroconf_enabled "no"
zeroconf_name "Moode MPD"
filesystem_charset "UTF-8"
metadata_to_use "+comment"
replaygain "off"
replaygain_preamp "0"
volume_normalization "no"
audio_buffer_size "4096"
max_output_buffer_size "131072"
max_connections "128"

decoder {
plugin "ffmpeg"
enabled "yes"
}

input {
plugin "curl"
}

resampler {
plugin "soxr"
quality "very high"
threads "1"
}

audio_output {
type "alsa"
name "ALSA default"
device "hw:0,0"
mixer_type "software"
dop "no"
}

audio_output {
type "alsa"
name "ALSA crossfeed"
device "crossfeed"
mixer_type "software"
dop "no"
}

audio_output {
type "alsa"
name "ALSA parametric eq"
device "eqfa4p"
mixer_type "software"
dop "no"
}

audio_output {
type "alsa"
name "ALSA graphic eq"
device "alsaequal"
mixer_type "software"
dop "no"
}

audio_output {
type "alsa"
name "ALSA polarity inversion"
device "invpolarity"
mixer_type "software"
dop "no"
}

audio_output {
type "alsa"
name "ALSA bluetooth"
device "btstream"
mixer_type "software"
}

audio_output {
type "httpd"
name "HTTP stream"
port "8000"
encoder "lame"
bitrate "320"
tags "yes"
always_on "yes"
}


# add a FIFO to be read by a cava, which is run as a subprocess of mpd_oled
audio_output {
       type            "fifo"
       name            "mpd_oled_FIFO"
       path            "/tmp/mpd_oled_fifo"
       format          "44100:16:2"
}
Reply
(04-13-2020, 06:20 PM)fabio323ti Wrote: yes , selected and reboot

this is aplay -l results:

Code:
pi@moode:~/cava $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
 Subdevices: 7/7
 Subdevice #0: subdevice #0
 Subdevice #1: subdevice #1
 Subdevice #2: subdevice #2
 Subdevice #3: subdevice #3
 Subdevice #4: subdevice #4
 Subdevice #5: subdevice #5
 Subdevice #6: subdevice #6
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 IEC958/HDMI [bcm2835 IEC958/HDMI]
 Subdevices: 1/1
 Subdevice #0: subdevice #0
card 0: ALSA [bcm2835 ALSA], device 2: bcm2835 IEC958/HDMI1 [bcm2835 IEC958/HDMI1]
 Subdevices: 1/1
 Subdevice #0: subdevice #0
card 1: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM]
 Subdevices: 8/8
 Subdevice #0: subdevice #0
 Subdevice #1: subdevice #1
 Subdevice #2: subdevice #2
 Subdevice #3: subdevice #3
 Subdevice #4: subdevice #4
 Subdevice #5: subdevice #5
 Subdevice #6: subdevice #6
 Subdevice #7: subdevice #7
card 1: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM]
 Subdevices: 8/8
 Subdevice #0: subdevice #0
 Subdevice #1: subdevice #1
 Subdevice #2: subdevice #2
 Subdevice #3: subdevice #3
 Subdevice #4: subdevice #4
 Subdevice #5: subdevice #5
 Subdevice #6: subdevice #6
 Subdevice #7: subdevice #7

this is aplay -L

Code:
pi@moode:~/cava $ aplay -L
null
   Discard all samples (playback) or generate zero samples (capture)
btaplay_dmix
alsaequal
plug_alsaequal
btstream
crossfeed
plug_bs2b
eqfa4p
plug_eqfa4p
invpolarity
default:CARD=ALSA
   bcm2835 ALSA, bcm2835 ALSA
   Default Audio Device
sysdefault:CARD=ALSA
   bcm2835 ALSA, bcm2835 ALSA
   Default Audio Device
dmix:CARD=ALSA,DEV=0
   bcm2835 ALSA, bcm2835 ALSA
   Direct sample mixing device
dmix:CARD=ALSA,DEV=1
   bcm2835 ALSA, bcm2835 IEC958/HDMI
   Direct sample mixing device
dmix:CARD=ALSA,DEV=2
   bcm2835 ALSA, bcm2835 IEC958/HDMI1
   Direct sample mixing device
dsnoop:CARD=ALSA,DEV=0
   bcm2835 ALSA, bcm2835 ALSA
   Direct sample snooping device
dsnoop:CARD=ALSA,DEV=1
   bcm2835 ALSA, bcm2835 IEC958/HDMI
   Direct sample snooping device
dsnoop:CARD=ALSA,DEV=2
   bcm2835 ALSA, bcm2835 IEC958/HDMI1
   Direct sample snooping device
plughw:CARD=ALSA,DEV=0
   bcm2835 ALSA, bcm2835 ALSA
   Hardware device with all software conversions
plughw:CARD=ALSA,DEV=1
   bcm2835 ALSA, bcm2835 IEC958/HDMI
   Hardware device with all software conversions
plughw:CARD=ALSA,DEV=2
   bcm2835 ALSA, bcm2835 IEC958/HDMI1
   Hardware device with all software conversions
hw:CARD=ALSA,DEV=0
   bcm2835 ALSA, bcm2835 ALSA
   Direct hardware device without any conversions
hw:CARD=ALSA,DEV=1
   bcm2835 ALSA, bcm2835 IEC958/HDMI
   Direct hardware device without any conversions
hw:CARD=ALSA,DEV=2
   bcm2835 ALSA, bcm2835 IEC958/HDMI1
   Direct hardware device without any conversions
default:CARD=Loopback
   Loopback, Loopback PCM
   Default Audio Device
sysdefault:CARD=Loopback
   Loopback, Loopback PCM
   Default Audio Device
front:CARD=Loopback,DEV=0
   Loopback, Loopback PCM
   Front speakers
surround21:CARD=Loopback,DEV=0
   Loopback, Loopback PCM
   2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Loopback,DEV=0
   Loopback, Loopback PCM
   4.0 Surround output to Front and Rear speakers
surround41:CARD=Loopback,DEV=0
   Loopback, Loopback PCM
   4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Loopback,DEV=0
   Loopback, Loopback PCM
   5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Loopback,DEV=0
   Loopback, Loopback PCM
   5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Loopback,DEV=0
   Loopback, Loopback PCM
   7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
dmix:CARD=Loopback,DEV=0
   Loopback, Loopback PCM
   Direct sample mixing device
dmix:CARD=Loopback,DEV=1
   Loopback, Loopback PCM
   Direct sample mixing device
dsnoop:CARD=Loopback,DEV=0
   Loopback, Loopback PCM
   Direct sample snooping device
dsnoop:CARD=Loopback,DEV=1
   Loopback, Loopback PCM
   Direct sample snooping device
plughw:CARD=Loopback,DEV=0
   Loopback, Loopback PCM
   Hardware device with all software conversions
plughw:CARD=Loopback,DEV=1
   Loopback, Loopback PCM
   Hardware device with all software conversions
hw:CARD=Loopback,DEV=0
   Loopback, Loopback PCM
   Direct hardware device without any conversions
hw:CARD=Loopback,DEV=1
   Loopback, Loopback PCM
   Direct hardware device without any conversions




and this is alsa-base.conf

Code:
options snd_bcm2835 index=0
options snd-aloop index=1

this is mpd.conf

Code:
#########################################
# This file is automatically generated
# by the MPD configuration page.
#########################################

music_directory "/var/lib/mpd/music"
playlist_directory "/var/lib/mpd/playlists"
db_file "/var/lib/mpd/database"
log_file "/var/log/mpd/log"
pid_file "/var/run/mpd/pid"
state_file "/var/lib/mpd/state"
sticker_file "/var/lib/mpd/sticker.sql"
user "mpd"
group "audio"
bind_to_address "any"
port "6600"
log_level "default"
restore_paused "yes"
auto_update "no"
follow_outside_symlinks "yes"
follow_inside_symlinks "yes"
zeroconf_enabled "no"
zeroconf_name "Moode MPD"
filesystem_charset "UTF-8"
metadata_to_use "+comment"
replaygain "off"
replaygain_preamp "0"
volume_normalization "no"
audio_buffer_size "4096"
max_output_buffer_size "131072"
max_connections "128"

decoder {
plugin "ffmpeg"
enabled "yes"
}

input {
plugin "curl"
}

resampler {
plugin "soxr"
quality "very high"
threads "1"
}

audio_output {
type "alsa"
name "ALSA default"
device "hw:0,0"
mixer_type "software"
dop "no"
}

audio_output {
type "alsa"
name "ALSA crossfeed"
device "crossfeed"
mixer_type "software"
dop "no"
}

audio_output {
type "alsa"
name "ALSA parametric eq"
device "eqfa4p"
mixer_type "software"
dop "no"
}

audio_output {
type "alsa"
name "ALSA graphic eq"
device "alsaequal"
mixer_type "software"
dop "no"
}

audio_output {
type "alsa"
name "ALSA polarity inversion"
device "invpolarity"
mixer_type "software"
dop "no"
}

audio_output {
type "alsa"
name "ALSA bluetooth"
device "btstream"
mixer_type "software"
}

audio_output {
type "httpd"
name "HTTP stream"
port "8000"
encoder "lame"
bitrate "320"
tags "yes"
always_on "yes"
}


# add a FIFO to be read by a cava, which is run as a subprocess of mpd_oled
audio_output {
       type            "fifo"
       name            "mpd_oled_FIFO"
       path            "/tmp/mpd_oled_fifo"
       format          "44100:16:2"
}

so... all this mess is born by asound.conf, without it moode run fine, just spectrum loopback missing...
i hope will me another easiest way to create loopback for cava...

thanks
Reply
Hi Fabio

I can't see any obvious issues in your configuration, and so I don't have any further suggestions (except to check that your volume is up!). I believe the loopback can be configured on your setup, so you might want to search the internet for a solution. Otherwise, you could undo your modifications for the loopback and use the MPD FIFO method to create a copy of the audio (which only gives a spectrum for music playing through MPD).

Adrian.
Reply
hallo Adrian, just to know, last night installed "volumio" and also there loopback is created and working without any output audio from 3.5 jack.
i used your settings from "github issue", i remember you that at moment i don't use any DAC i2s board....

so i will try for last Mpd fifo method for loopback but i have no instructions about it.. how can be done it?

many thanks
Reply
Adrian, can you update the missing wiring image in your second message?
Thanks!
Reply
Hi Fabio

Your mpd.conf file already contains the section to output the FIFO for mpd_oled (from following the mpd_oled installation instructions), so just run mpd_oled without the '-c' option.

Adrian.
Reply
Hi Malefoda

My second message in this thread is #5

   http://moodeaudio.org/forum/showthread.p...44#pid1444

and I can see all the images in it (I believe!).

A couple of days ago I had a report that the links to the images in the mpd_oled installation instructions were broken, so if you meant these images then this is now fixed.

Adrian.
Reply
Thanks Adrian, default settings FIFO are ok, and without -c working fine... but main purpose is to show cava from streaming... spotify or other external source.

will leave as is, too much time waste on stupid cava.. When some engineer will complete plugin will try change. For me its uncomplete and half-useful .
Reply
(04-14-2020, 09:54 AM)adrii Wrote: Hi Malefoda

My second message in this thread is #5

   http://moodeaudio.org/forum/showthread.p...44#pid1444

and I can see all the images in it (I believe!).

A couple of days ago I had a report that the links to the images in the mpd_oled installation instructions were broken, so if you meant these images then this is now fixed.

Adrian.

Hi Adrian,
sadly just after the "I wire it like this" line there is a missing image. But if it's the instructions it's not that critical Wink

Here is what I get:



[Image: Capture-d-e-cran-2020-04-14-a-14-49-35.jpg]
Reply
(04-14-2020, 12:52 PM)Malefoda Wrote:
(04-14-2020, 09:54 AM)adrii Wrote: Hi Malefoda

My second message in this thread is #5

   http://moodeaudio.org/forum/showthread.p...44#pid1444

and I can see all the images in it (I believe!).

A couple of days ago I had a report that the links to the images in the mpd_oled installation instructions were broken, so if you meant these images then this is now fixed.

Adrian.

Hi Adrian,
sadly just after the "I wire it like this" line there is a missing image. But if it's the instructions it's not that critical Wink

Here is what I get:



[Image: Capture-d-e-cran-2020-04-14-a-14-49-35.jpg]

@Malefoda 

I'm not sure why, but in my browser, I see the same "[Image: Raspberry-Pi-...jpg]" you see BUT the image itself follows the paragraph which begins "If you are using a PI 1 or 2...."

Browse directly to the image and you'll see what I mean: http://4.bp.blogspot.com/-L3-iYP2DCBo/Uc...1098cd.jpg

Regards,
Kent
Reply


Forum Jump: