Re: [AD] install_param_int_ex() doesn't work :( |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On November 10, 2001 05:33 pm, you wrote:
> Here is the C test program we used for install_param_int_ex(). It should
> beep once a second, but doesn't (at least for us). It's set up for use with
> Windows at the moment.
>
>
[snip]
> int main()
> {
> volatile int counter = 0;
> allegro_init();
> install_timer();
> install_keyboard();
> install_param_int_ex(&timer_handler, (void *)&counter, 1193181);
how about:
install_param_int_ex(&timer_handler, (void *)&counter, BPS_TO_TIMER(1));
> while (!keypressed()) {
> while (counter) {
> MessageBeep(0);
> counter--;
> }
> }
> remove_param_int(&timer_handler, (void *)&counter);
> readkey();
> return 0;
> }
> END_OF_MAIN();
Does that work?
--
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx
http://strangesoft.net