Re: no sound with gcompris

2020-03-24 Thread Antoine Jacoutot
On Tue, Mar 24, 2020 at 08:06:22AM +0100, Antoine Jacoutot wrote:
> On Mon, Mar 23, 2020 at 11:12:36PM +0100, Sebastian Reitenbach wrote:
> > Hi,
> > 
> > I guess I'm just missing a minor thing, but so far, gcompris is refusing to 
> > play any sound.
> > In case it matters, I'm running a windowmaker desktop, other applications 
> > have sound, i.e. firefox, witchblast, supertuxkart etc.
> > 
> > I've seen gcompris seems to rely on gstreamer to play audio,
> > so I tested games/gamine, which also seems to use gstreamer,
> > and that produces some background sound.
> > 
> > these are gstreamer related packages installed:
> > gstreamer-0.10.36p13 framework for streaming media
> > gstreamer-plugins-base-0.10.36p19 base elements for GStreamer
> > gstreamer1-1.16.2   framework for streaming media
> > gstreamer1-plugins-bad-1.16.2 bad elements for GStreamer
> > gstreamer1-plugins-base-1.16.2 base elements for GStreamer
> > gstreamer1-plugins-good-1.16.2 good elements for GStreamer
> > gstreamer1-plugins-libav-1.16.2 ffmpeg elements for GStreamer
> > gstreamer1mm-1.10.0p4 C++ bindings for GStreamer
> > phonon-gstreamer-icons-4.9.1-qt5 GStreamer-based Phonon backend icons
> > phonon-qt5-gstreamer-4.9.1 GStreamer-based Phonon backend
> 
> Hi.
> 
> I can reproduce, let try and fix it before moving to sdl-mixer.
> Thanks.

Fixed, you need gstreamer-plugins-good.

-- 
Antoine



Re: no sound with gcompris

2020-03-24 Thread Antoine Jacoutot
On Mon, Mar 23, 2020 at 11:12:36PM +0100, Sebastian Reitenbach wrote:
> Hi,
> 
> I guess I'm just missing a minor thing, but so far, gcompris is refusing to 
> play any sound.
> In case it matters, I'm running a windowmaker desktop, other applications 
> have sound, i.e. firefox, witchblast, supertuxkart etc.
> 
> I've seen gcompris seems to rely on gstreamer to play audio,
> so I tested games/gamine, which also seems to use gstreamer,
> and that produces some background sound.
> 
> these are gstreamer related packages installed:
> gstreamer-0.10.36p13 framework for streaming media
> gstreamer-plugins-base-0.10.36p19 base elements for GStreamer
> gstreamer1-1.16.2   framework for streaming media
> gstreamer1-plugins-bad-1.16.2 bad elements for GStreamer
> gstreamer1-plugins-base-1.16.2 base elements for GStreamer
> gstreamer1-plugins-good-1.16.2 good elements for GStreamer
> gstreamer1-plugins-libav-1.16.2 ffmpeg elements for GStreamer
> gstreamer1mm-1.10.0p4 C++ bindings for GStreamer
> phonon-gstreamer-icons-4.9.1-qt5 GStreamer-based Phonon backend icons
> phonon-qt5-gstreamer-4.9.1 GStreamer-based Phonon backend

Hi.

I can reproduce, let try and fix it before moving to sdl-mixer.
Thanks.

> 
> starting gcompris with debug, I get to see:
> ...
> gcompris: Adding music/intro.ogg in the play list queue
> gcompris: adding queue file (music/intro.ogg)
> gcompris: ... get_next_sound_to_play : music/intro.ogg
> gcompris:   fx_play music/intro.ogg 
> (/usr/local/share/gcompris/boards/music/intro.ogg)
> gcompris:uri 'file:///usr/local/share/gcompris/boards/music/intro.ogg'
> gcompris: Adding voices/$LOCALE/misc/welcome.ogg in the play list queue
> gcompris: adding queue file (voices/$LOCALE/misc/welcome.ogg)
> ...
> 
> but no errors or warnings regarding sound.
> 
> The only way I got gcompris to play audio was to switch
> to sdl-mixer instead of gstreamer. 
> 
> So, I guess I must just missing something, so a hit with a cluebat would be 
> appreciated.
> 
> I doubt it, but if there is no other way to get sound from gcompris, than to 
> switch to 
> sdl-mixer audio backend, would below patch OK?
> 
> cheers,
> Sebastian
> 
> 
> Index: Makefile
> ===
> RCS file: /cvs/ports/games/gcompris/Makefile,v
> retrieving revision 1.72
> diff -u -r1.72 Makefile
> --- Makefile  20 Mar 2020 16:44:23 -  1.72
> +++ Makefile  23 Mar 2020 22:06:20 -
> @@ -4,7 +4,7 @@
>  
>  DISTNAME=gcompris-17.05
>  EXTRACT_SUFX=.tar.bz2
> -REVISION=3
> +REVISION=4
>  
>  CATEGORIES=  games education
>  
> @@ -20,10 +20,12 @@
>  WANTLIB += X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi Xinerama Xrandr
>  WANTLIB += Xrender atk-1.0 c cairo cairo-gobject expat ffi fontconfig
>  WANTLIB += freetype fribidi gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 glib-2.0
> -WANTLIB += gmodule-2.0 gobject-2.0 graphite2 gstreamer-0.10 gthread-2.0
> +WANTLIB += gmodule-2.0 gobject-2.0 graphite2 gthread-2.0
>  WANTLIB += gtk-x11-2.0 harfbuzz iconv intl lzma m pango-1.0
>  WANTLIB += pangocairo-1.0 pangoft2-1.0 pcre pixman-1 png pthread rsvg-2
>  WANTLIB += sqlite3 util xcb xcb-render xcb-shm xml2 z
> +WANTLIB += FLAC SDL SDL_mixer mikmod ogg smpeg sndio usbhid vorbis
> +WANTLIB += vorbisfile
>  
>  MASTER_SITES=http://gcompris.net/download/gtk/src/
>  
> @@ -55,6 +57,7 @@
>  CONFIGURE_ENV=   CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
>   LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib"
>  CONFIGURE_ARGS=  --enable-py-build-only \
> + --enable-sdlmixer \
>   --with-python=${MODPY_BIN}
>  
>  # don't install under share/gnome/help/, there is no yelp (xml) file
> Index: pkg/PLIST
> ===
> RCS file: /cvs/ports/games/gcompris/pkg/PLIST,v
> retrieving revision 1.30
> diff -u -r1.30 PLIST
> --- pkg/PLIST 27 Jun 2018 21:03:46 -  1.30
> +++ pkg/PLIST 23 Mar 2020 22:06:20 -
> @@ -2,48 +2,48 @@
>  @bin bin/gcompris
>  @bin bin/gcompris-gnuchess
>  lib/gcompris/
> -lib/gcompris/libalgebra.so
> -lib/gcompris/libalgebra_guesscount.so
> -lib/gcompris/libawele.so
> -lib/gcompris/libbillard.so
> -lib/gcompris/libcanal_lock.so
> -lib/gcompris/libchess.so
> -lib/gcompris/libclick_on_letter.so
> -lib/gcompris/libclickgame.so
> -lib/gcompris/libclockgame.so
> -lib/gcompris/libcrane.so
> -lib/gcompris/libenumerate.so
> -lib/gcompris/liberase.so
> -lib/gcompris/libfifteen.so
> -lib/gcompris/libgletters.so
> -lib/gcompris/libgoocanvas-gc.so
> -lib/gcompris/libhanoi.so
> -lib/gcompris/libhanoi_real.so
> -lib/gcompris/libimageid.so
> -lib/gcompris/libleftright.so
> -lib/gcompris/libmagic_hat.so
> -lib/gcompris/libmaze.so
> -lib/gcompris/libmemory.so
> -lib/gcompris/libmenu.so
> -lib/gcompris/libmissingletter.so
> -lib/gcompris/libmoney.so
> -lib/gcompris/libparatrooper.so
> -lib/gcompris/libphotohunter.so
> -lib/gcompris/libplanegame.so
> -lib/gcompris/libpython.so