www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/11/09:19:50

Message-ID: <34E1B376.581C@post.comstar.ru>
Date: Wed, 11 Feb 1998 17:19:34 +0300
From: Dim Zegebart <zager AT post DOT comstar DOT ru>
Reply-To: zager AT post DOT comstar DOT ru
Organization: Comstar Ltd.
MIME-Version: 1.0
To: DJGPP Mail List <djgpp AT delorie DOT com>
Subject: Allegro3.0 and play_sample() problem

Hi,
does anybody have some problems with play_sample() routime in
Allegro 3.0 ? It runs perfect for me, but not in all branches of
my programm (sorry, I can't post it's code since it too large).
It looks about like this :

kbd_handler()
{ if (KEY_P)
    play_sample(samp1,...,1);  // plays OK
  else
    stop_sample(samp1); // I can press P-any_key keys as much times as I
want and it works fine. But ... (see foo())
}

foo()
{ if (some_cond)
   play_sample(samp1,...,0); //the same global sample. (Doesn't work at
all)
}

The worst thing is after failed attept at foo(), play_sample() at
kbd_handler() can't playing music then I press 'P' key

Note : everething was OK with Allegro 2.2 and some WIP.

-- 
____ ____ 
|   \   /   Dim Zegebart
____/____   

Moscow Russia
WWW - http://www.geocities.com/siliconvalley/pines/7817
DZcomm - comm library for Allegro
Palantir - multytasking kernel for Allegro (based on PDMLWP)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019