Re: libgnome compile fails without sound



Gleef <dzol@virtual-yellow.com> writes:

> The file gnome-triggers.c fails to check if HAVE_ESD is defined in the
> gnome_triggers_play_sound() function.  Here's the patch, based on the
> handling of the same issue in the gnome_trigger_do_mediaplay() function:

Just fixed in CVS.

Martin

> 
> Index: gnome-triggers.c
> ===================================================================
> RCS file: /cvs/gnome/gnome-libs/libgnome/gnome-triggers.c,v
> retrieving revision 1.23
> diff -u -r1.23 gnome-triggers.c
> --- gnome-triggers.c	1999/01/06 17:45:21	1.23
> +++ gnome-triggers.c	1999/01/06 21:30:48
> @@ -353,6 +353,7 @@
>  static void
>  gnome_triggers_play_sound(const char *sndname)
>  {
> +#ifdef HAVE_ESD
>    int sid;
>  
>    if(!sound_ids)
> @@ -369,6 +370,11 @@
>    if(sid < 0) return;
>    sid--;
>    esd_sample_play(gnome_sound_connection, sid);
> +#else
> +  g_warning("Request to play sound name %s - esound support not available\n",
> +	    sndname);
> +#endif
> +
>  }
>  
>  void
> 
> 
> -- 
>         FAQ: Frequently-Asked Questions at http://www.gnome.org/gnomefaq
>          To unsubscribe: mail gnome-list-request@gnome.org with 
>                        "unsubscribe" as the Subject.
> 

-- 
-----------------------------------------------------------------
   Martin Baulig - Angewandte Mathematik - Universitaet Trier
   martin@home-of-linux.org, http://www.home-of-linux.org/
------------------------------------------------------------------



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]