Message-ID: <35C434F4.105C@pacbell.net> Date: Sun, 02 Aug 1998 02:44:20 -0700 From: RaVeN X-Mailer: Mozilla 3.01C-PBWG (Win95; U) MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: hope iam in the right place Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com could you look at this code for me please.. //---------------------------------------- //------------------------------- //thank you for looking at this.. // #1, no sound, but it should work // #2, why do i need 2 of the }, at the end. // #3, is the KEY_UP, right // --- there all close to the bottom // --- thank's again //----------------------------------------- #include #include #include //-------------------------------------------------- char buf[80]; //-------------------------------------------- int main (char *argv[]) { SAMPLE *shoot ; allegro_init(); install_keyboard(); //------------------ //----------------------------------- install_mouse(); install_timer(); set_gfx_mode(GFX_VGA, 320, 200, 100,0); set_pallete(desktop_pallete); //------------------------ //------------------------------- //-------------------------------- //------------------------ fade_in (desktop_pallete,1); //--------------------------- //--------------------------- putpixel (screen, 7,20,7); vline(screen,80,25,50,1); // fade_out (1); vline(screen,100,25,50,6); show_mouse (screen); //----------------------------- load_wav("shoot.wav"); //------------------------------ //------------ #1 how come i get no sound // --- #2 and KEY_UP, is it right while (!keypressed(KEY_UP)); //------------------------------- if(install_sound(DIGI_AUTODETECT, MIDI_AUTODETECT, argv[0]) != 0) { play_sample(shoot, 62, 192, 1000, 1); while (KEY_UP); //------------------------------- play_sample(shoot, 62, 192, 1000, 1); //------------------------------- return 0; //--------------------------------- } //--#3 why do i need 2 of these .. }