How do you enable Splash Screen Audio?
  • A couple of versions ago, when a video was placed for the splash screen, the audio would play. But now it shows up only muted. Where could I fix this?
  • Posted somewhere in the forums, is the answer. I remember it coming up a while ago. I believe that it has to do with initializing alsa before omxplayer.
  • "Posted somewhere in the forums, is the answer" like Yoda you talk :D

    In my /etc/init.d/asplashscreen

    # -o local for 3.5" headphones sound, -o hdmi sound
    audioconffile="/var/lib/alsa/asound.state"
    audioout="local"
    if [ -f $audioconffile ]
    then

    #read the configuration
    straudio=$(sed -n "/PCM Playback Route/{N; /value ./p}" $audioconffile | grep value)
    #printf "straudio" $straudio
    audioconf=${straudio: -1}
    case "$audioconf" in
    0) audioout="hdmi"
    ;;
    1) audioout="local"
    ;;
    2) audioout="hdmi"
    ;;
    *) audioout="hdmi"
    ;;
    esac
    else
    printf "$audioconffile dos not exists"
    fi
    omxplayer -b -o $audioout /home/pi/splashvideo.mp4 &


    Hope this helps
  • Thanks! I'll check it out as soon as I clock out. :D
  • Does this part of the code go before or after the current one?
  • Ok, got it working! Only modified:

    omxplayer -o hdmi -b /home/pi/pimame/PiPLAY.mov &
  • Yes of course! this code coms from my raspicade distro :) The code allows to get the sound for all cases : jack or hdmi... which is not the case of "-o hdmi" :D

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!