RanzQ / hyperion-audio-effects

Hyperion audio effects dev kit using Gstreamer
MIT License
47 stars 8 forks source link

i am not too far .. but ... #22

Closed Starmagna closed 7 years ago

Starmagna commented 7 years ago

Hello ! First of all : thank you for this audio-effect !!It used to work fine with my old raspberry !! No i use a RPI2 with osmc but the led are still off when i am playing mpd ... I want to use mpd /audio-effect on analog jack , and kodi with both hdmi and analog here is my /etc/asound.conf:

`pcm.!default {
  type asym
  playback.pcm "alsa_sink"
  capture.pcm "alsa_monitor"
}

pcm.alsa_sink {
  type plug
  slave {pcm "multi_dev"}
  route_policy "duplicate"
}

pcm.alsa_monitor {
  type plug
  slave {pcm "hw:Loopback,1,0"}
}

pcm.multi_dev {
  type multi

  slaves.a.pcm "hw:0,0" # Match this to your sound card (aplay -l)
  slaves.a.channels 2
  slaves.b.pcm "hw:Loopback,0,0"
  slaves.b.channels 2

  bindings.0.slave a
  bindings.0.channel 0
  bindings.1.slave a
  bindings.1.channel 1
  bindings.2.slave b
  bindings.2.channel 0
  bindings.3.slave b
  bindings.3.channel 1
}
`

aplay -l

`**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
  Subdevices: 7/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 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
  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
`

When i use gst-launch-1.0 audiotestsrc ! alsasink device="hw:0,0" I have sound but no light when i use gst-launch-1.0 audiotestsrc ! alsasink device="hw:1,0" I have Light and no sound !!!

thank you for your help :)

RanzQ commented 7 years ago

Your config looks ok. Re-check step 9. in the OSMC instructions and check playback and recording volumes using alsamixer.

hw:0,0 is your analog audio, hw:0,1 is hdmi, hw:1,0 is same as hw:Loopback,0.

Try these:

gst-launch-1.0 audiotestsrc ! autoaudiosink
gst-launch-1.0 audiotestsrc ! alsasink
Starmagna commented 7 years ago

Thanks for your anwser ! in alsamix volume was good. I think i have found the problem with your help 👍 In my mpd.conf i had 2 audio output

audio_output {
        type            "alsa"
        name            "Analogique"
        device          "hw:0,0"        # optional
#        device "default"
        mixer_type      "software"      # optional
}

audio_output {
        type            "alsa"
        name            "HDMI"
        device          "hw:1,0"        # optional
#        device "default"
        mixer_type      "software"      # optional
#       mixer_device    "default"       # optional
#       mixer_control   "PCM"           # optional
#       mixer_index     "0"             # optional
}

I just comment the HDMI one and it's work very well

Thank a lot again for all of this !!!