' Hardwire ' ' Copyright 2005 Ian Cowburn ' ' $Id$ ' Strict Incbin "SFX/pop.wav" Incbin "SFX/click.wav" Incbin "SFX/path.wav" Type Sound Global popsfx:TSound Global clicksfx:TSound Global pathsfx:TSound Global play_pop:Int Global play_click:Int Global play_path:Int Function Init() popsfx=LoadSound("incbin::SFX/pop.wav") clicksfx=LoadSound("incbin::SFX/click.wav") pathsfx=LoadSound("incbin::SFX/path.wav") play_pop=False play_click=False play_path=False End Function Function Pop() play_pop=True End Function Function Click() play_click=True End Function Function Path() play_path=True End Function Function Process() If play_pop Then popsfx.Play() If play_click Then clicksfx.Play() If play_path Then pathsfx.Play() play_pop=False play_click=False play_path=False End Function End Type