From: kalyniuk AT freenet DOT edmonton DOT ab DOT ca () Newsgroups: comp.os.msdos.djgpp Subject: Allegro sound bug? Date: 16 Mar 1997 15:24:56 GMT Organization: Edmonton FreeNet, Edmonton, Alberta, Canada Lines: 29 Message-ID: <5gh3c8$nhi$1@news.sas.ab.ca> NNTP-Posting-Host: fn2.freenet.edmonton.ab.ca To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp I've found a weird problem using Allegro's play_sample() function. If I use it anywhere in my program other than within a while loop the sample sounds crappy (scratchy and half the volume). For example: while(!keypressed()) if(mouse_b & 1) { play_sample(the_sample, 100, 128, 1000, FALSE) } // this works fine if(move_guy > 300) { play_sample(the_sample, 100, 128, 1000, FALSE) } // this does not I've tried play_sample in various places and the only place it seems to sound good is in a while loop. I've also tried load_sample() in various places to see if it made a difference and it did not. Am I missing something or is it a bug? Regards, Mike. --