Message-ID: <34E1B376.581C@post.comstar.ru> Date: Wed, 11 Feb 1998 17:19:34 +0300 From: Dim Zegebart Reply-To: zager AT post DOT comstar DOT ru Organization: Comstar Ltd. MIME-Version: 1.0 To: DJGPP Mail List Subject: Allegro3.0 and play_sample() problem Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk 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)