NAME ==== vg_sound_attach() - exit sound-server SYNOPSIS ======== void vg_sound_attach(const char * soundfile, const char * soundname, int volpc) DESCRIPTION =========== Loads a soundfile and attaches it to a sound-name. soundfile should use a relative path to the game-directory, e.g. your game resides under "mygame/": mygame/ mygame/sounds/ ... then loading "buh.wav" under "sounds" should use this path: sounds/buh.wav soundname is a nickname of your choice for this soundfile, it must begin with "s-", must not have more than 15 characters, and may contain letters, digits, underscores (_) and hyphens (-) (refer to Understanding sound: "Steps to play a sound"). With volpc, a value between 0 and 200, you define the level of loudness for this sound. 100 is default=orignal loudness, 50 is half as loud, 200 is twice as loud. So you can bring up soundfiles with different levels of loudness to the same level. RETURN VALUE ============ No value is returned. SEE ALSO ======== Index Understanding sound vg_sound_startserver() vg_sound_endserver() vg_sound_play() vg_sound_paus() vg_sound_cont() vg_sound_pate() vg_sound_catb() vg_sound_stop() vg_sound_gclr() vg_sound_gadd() vg_sound_gdel() vg_sound_volm() vg_sound_volumename()