Mail Archives: djgpp/1998/02/11/09:19:50
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 -