No Sound on Splash Screen - Kite's SAIO

Raspberry Pi OS/Software discussion (beyond RetroPie-specific issues)
User avatar
tyler335
Posts: 53
Joined: Mon May 16, 2016 2:43 pm
Has thanked: 17 times
Been thanked: 25 times

No Sound on Splash Screen - Kite's SAIO

Post by tyler335 » Thu Apr 13, 2017 8:05 am

I have @kite 's SAIO. It works perfectly. Since the SAIO gets sound through USB, I am unable to get sound for the video splash screen when the pi zero is booting up. Does anyone know how to enable sound on the SAIO during boot before the splash screen?
Check out my latest GBZ build: http://www.sudomod.com/forum/viewtopic. ... 779#p35779

Image.......Image.......Image

User avatar
kite
Posts: 972
Joined: Thu May 12, 2016 4:30 am
Location: UK
Has thanked: 246 times
Been thanked: 361 times
Contact:

Re: No Sound

Post by kite » Thu Apr 13, 2017 8:30 am

The issue is that omxplayer doesn't support USB sound cards, however some of these changes might need to be applied https://raspberrypi.stackexchange.com/q ... dio-device I will look at them this weekend to double check I have set up USB sound on my image correctly.. FYI I set the sound to how the sw image manual says to for USB audio, so the /etc/asound.conf is set up doing the work.
Stock clearance - CLOSED: viewtopic.php?f=38&t=12064
Kite's Mailing List: https://goo.gl/forms/e97uUvPOfUxPWdz82
Kite's FAQ: https://kiteretro.com/faq/


ImageImageImageImageImage

User avatar
kite
Posts: 972
Joined: Thu May 12, 2016 4:30 am
Location: UK
Has thanked: 246 times
Been thanked: 361 times
Contact:

Re: No Sound

Post by kite » Fri Apr 14, 2017 2:17 am

UPDATE!

The last comment on this thread said ALSA audio IS supported on omxplayer! https://github.com/popcornmix/omxplayer/issues/442

I have tested this with 'omxplayer -o alsa <video.mp4>' and audio works! We just need to find out where the call is made in a script somewhere and add '-o alsa' to the command and it'll work.

EDIT!

SOLUTION FOUND!
Edit '/etc/init.d/asplashscreen' and change the line:

Code: Select all

omxplayer -o both -b --layer 10000 "$line"
to:

Code: Select all

omxplayer -o alsa -b --layer 10000 "$line"
(the change is 'both' to 'alsa')

And you have sound on splashscreen :)

SOLUTION FOUND FOR RPI 4.4!
Edit '/opt/retropie/supplementary/splashscreen/asplashscreen.sh' and change the line:

Code: Select all

omxplayer -o both -b --layer 10000 "$line"
to:

Code: Select all

omxplayer -o alsa -b --layer 10000 "$line"
(the change is 'both' to 'alsa')
Stock clearance - CLOSED: viewtopic.php?f=38&t=12064
Kite's Mailing List: https://goo.gl/forms/e97uUvPOfUxPWdz82
Kite's FAQ: https://kiteretro.com/faq/


ImageImageImageImageImage

User avatar
HoolyHoo
Posts: 766
Joined: Sat Jul 09, 2016 9:34 pm
Has thanked: 206 times
Been thanked: 741 times

Re: No Sound on Splash Screen - Kite's SAIO

Post by HoolyHoo » Fri Apr 14, 2017 4:54 am

kite wrote:
Fri Apr 14, 2017 2:17 am
UPDATE!

The last comment on this thread said ALSA audio IS supported on omxplayer! https://github.com/popcornmix/omxplayer/issues/442

I have tested this with 'omxplayer -o alsa <video.mp4>' and audio works! We just need to find out where the call is made in a script somewhere and add '-o alsa' to the command and it'll work.

EDIT!

SOLUTION FOUND!
Edit '/etc/init.d/asplashscreen' and change the line:

Code: Select all

omxplayer -o both -b --layer 10000 "$line"
to:

Code: Select all

omxplayer -o alsa -b --layer 10000 "$line"
(the change is 'both' to 'alsa')

And you have sound on splashscreen :)

I will be adding this by default to the NEXT pre-made image.. I'll update here with link when done.
Great job! I had looked at this line in the code but at the time only local, hdmi, or both were options. This is recently added. Good find.

User avatar
HoolyHoo
Posts: 766
Joined: Sat Jul 09, 2016 9:34 pm
Has thanked: 206 times
Been thanked: 741 times

Re: No Sound on Splash Screen - Kite's SAIO

Post by HoolyHoo » Fri Apr 14, 2017 6:31 am

HoolyHoo wrote:
Fri Apr 14, 2017 4:54 am
kite wrote:
Fri Apr 14, 2017 2:17 am
UPDATE!

The last comment on this thread said ALSA audio IS supported on omxplayer! https://github.com/popcornmix/omxplayer/issues/442

I have tested this with 'omxplayer -o alsa <video.mp4>' and audio works! We just need to find out where the call is made in a script somewhere and add '-o alsa' to the command and it'll work.

EDIT!

SOLUTION FOUND!
Edit '/etc/init.d/asplashscreen' and change the line:

Code: Select all

omxplayer -o both -b --layer 10000 "$line"
to:

Code: Select all

omxplayer -o alsa -b --layer 10000 "$line"
(the change is 'both' to 'alsa')

And you have sound on splashscreen :)

I will be adding this by default to the NEXT pre-made image.. I'll update here with link when done.
Great job! I had looked at this line in the code but at the time only local, hdmi, or both were options. This is recently added. Good find.
Ok, just an update. Found a small bug in that changing code on omxplayer call for splash screen will disable emulation station sound on game list scroll until you start and exit one game. Then scroll sound works. Not a deal breaker though. Maybe a work around for that can be found also.

User avatar
tyler335
Posts: 53
Joined: Mon May 16, 2016 2:43 pm
Has thanked: 17 times
Been thanked: 25 times

Re: No Sound on Splash Screen - Kite's SAIO

Post by tyler335 » Sun Apr 16, 2017 7:33 pm

For those (like me) who don't know their linux that well, you can edit this "asplashscreen" file by opening terminal (pressing F4) and typing:

sudo nano /etc/init.d/asplashscreen

After changing the code to what kite showed above, hold ctrl and choose the hot key option "write to file" (I think it is ctrl + O).
Check out my latest GBZ build: http://www.sudomod.com/forum/viewtopic. ... 779#p35779

Image.......Image.......Image

User avatar
VeteranGamer
Posts: 1738
Joined: Thu Jan 26, 2017 11:12 am
Location: London, UK
Has thanked: 528 times
Been thanked: 909 times

Re: No Sound on Splash Screen - Kite's SAIO

Post by VeteranGamer » Fri May 19, 2017 3:35 pm

kite wrote:
Fri Apr 14, 2017 2:17 am
UPDATE!

The last comment on this thread said ALSA audio IS supported on omxplayer! https://github.com/popcornmix/omxplayer/issues/442

I have tested this with 'omxplayer -o alsa <video.mp4>' and audio works! We just need to find out where the call is made in a script somewhere and add '-o alsa' to the command and it'll work.

EDIT!

SOLUTION FOUND!
Edit '/etc/init.d/asplashscreen' and change the line:

Code: Select all

omxplayer -o both -b --layer 10000 "$line"
to:

Code: Select all

omxplayer -o alsa -b --layer 10000 "$line"
(the change is 'both' to 'alsa')

And you have sound on splashscreen :)

I will be adding this by default to the NEXT pre-made image.. I'll update here with link when done.


just wondering, will this work if i have a common ground pcb and usb audio....

User avatar
HoolyHoo
Posts: 766
Joined: Sat Jul 09, 2016 9:34 pm
Has thanked: 206 times
Been thanked: 741 times

Re: No Sound on Splash Screen - Kite's SAIO

Post by HoolyHoo » Fri May 19, 2017 3:44 pm

VeteranGamer wrote:
Fri May 19, 2017 3:35 pm

just wondering, will this work if i have a common ground pcb and usb audio....
Yes. It should.

SQLEinstein
Posts: 17
Joined: Wed Mar 01, 2017 11:38 am
Has thanked: 11 times
Been thanked: 8 times

Re: No Sound on Splash Screen - Kite's SAIO

Post by SQLEinstein » Tue Jul 04, 2017 1:00 pm

I've been searching for a solution. Thanks! :D

User avatar
BadBert
Posts: 377
Joined: Wed Jun 29, 2016 4:14 am
Location: Hoogerheide, Netherlands
Has thanked: 100 times
Been thanked: 61 times
Contact:

Re: No Sound on Splash Screen - Kite's SAIO

Post by BadBert » Wed Jul 05, 2017 12:03 am

Cool! i'll try this on my own build :D
My first GBZ build -=HERE=- -> Became a gift to my little brother!
My 2nd GBZ build -=WIP HERE=- -> going with HDMI!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest