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
used this code from Adrian to ceate asound.conf
added /etc/modules loop command... and restart mpd...

loopback works great, cava is working also with stream airplay/spotify ect.. but no more audio output on 3.5 jack RPi board... 
maybe need DAC board on i2s ?? 

Code:
pcm.!hw {
       @args [ CARD DEV SUBDEV ]
       @args.CARD {
               type string
               default {
                       @func getenv
                       vars [
                               ALSA_PCM_CARD
                               ALSA_CARD
                       ]
                       default {
                               @func refer
                               name defaults.pcm.card
                       }
               }
       }
       @args.DEV {
               type integer
               default {
                       @func igetenv
                       vars [
                               ALSA_PCM_DEVICE
                       ]
                       default {
                               @func refer
                               name defaults.pcm.device
                       }
               }
       }
       @args.SUBDEV {
               type integer
               default {
                       @func refer
                       name defaults.pcm.subdevice
               }
       }

       type plug
       slave.pcm {
               type multi
               slaves {
                       a { channels 2 pcm {
                               type hw
                               card $CARD
                               device $DEV
                               subdevice $SUBDEV
                       }
                       }  # the real device

                       b { channels 2 pcm "plughw:Loopback,0" }  # loopback driver
               }
               bindings {
                       0 { slave a channel 0 }
                       1 { slave a channel 1 }
                       2 { slave b channel 0 }
                       3 { slave b channel 1 }
               }
       }
       ttable [
               [ 1 0 1 0 ]   # left  -> a.left,  b.left
               [ 0 1 0 1 ]   # right -> a.right, b.right
       ]
       hint {
               show {
                       @func refer
                       name defaults.namehint.extended
               }
               description "Direct hardware device without any conversions"
       }
}
Reply


Messages In This Thread
RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - by fabio323ti - 04-13-2020, 04:40 PM
RE: help me - by ghera78 - 02-28-2020, 08:01 AM
RE: help me - by ghera78 - 02-28-2020, 01:17 PM

Forum Jump: