I can't sync the sound in my game (Win)
- Posted by Jeramie <squishi at INREACH.COM> Aug 13, 2000
- 478 views
Hi, I'm making a slot machine game for Windows and I can't get the .wav sound of the reels stopping to synchronize with the graphics. I tried modifying Win32Lib (.45r) by changing the line result = c_func( xPlaySound, {file_string, NULL, or_bits(SND_FILENAME, SND_ASYNC)}) to result = c_func( xPlaySound, {file_string, NULL, or_bits(SND_FILENAME, SND_SYNC)}) and adding the constant SND_SYNC = #00000000 and the .wavs went from playing all at once to playing with a slight delay between them but it still isn't close to being syncronized. The sound effects are set in the code to play after the reels stop. I even tried using the time() function to get it to sync but that didn't go anywhere. Can you help? Thanks, Jeramie