| [Freeciv-Dev] Re: [Patch] WinMM Sound patch[Top] [All Lists][Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
 
 On Wed, Apr 24, 2002 at 03:17:03PM +0200, Andreas Kemnade wrote:
Content-Description: message body text
> I have put together a small patch to add a sound plugin for the
> windows multimedia system.
> +static void stop()
> +{
> +  sndPlaySound(NULL,0);
                       ^ missing space
> +}
> +
> +/**************************************************************************
> +  Wait
> +**************************************************************************/
> +static void wait()
> +{
> +  /* not implemented */
> +}
> +
> +/**************************************************************************
> +  Play sound sample
> +**************************************************************************/
> +static bool play(const char *const tag, const char *const fullpath,
> +                 bool repeat)
> +{
> +  if (!fullpath)
> +    return FALSE;
Missing {}
> +  sndPlaySound(fullpath,SND_ASYNC | (repeat ? SND_LOOP : 0));
                           ^ missing space
> +} 
Rest loosk ok. I can't test it.
        Raimar
-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "From what I am reading Win98 and NT5.0 will be getting rid of all that
  crap anyway. Seems that Microsoft has invented something called TCP/IP and
  another really revolutionary concept called DNS that eliminates the
  netbios crap too. All that arping from browsers is going to go away.
  I also hear rumors that they are on the verge of breakthrough discoveries
  called NFS, and LPD too. Given enough time and money, they might
  eventually invent Unix."
    -- George Bonser in linux-kernel
 
 |  |