VgaGames4

VgaGames4 - audio man-pages

[.. upper level ..]

# vg4->audio->load()

Load an audio file.

SYNTAX
int vg4->audio->load(const char *filename, int voladj, int vgidx)
FUNCTION PARAMETERS

filename | Audio file to load
voladj | Volume adjustment (0 - 255), default = 100
vgidx | Volume group this audio shall belong to: one of VG_AUDIO_VOLUMES

RETURN VALUE
Returns audio descriptor (positive integer) or 0 = not loaded
DESCRIPTION
Load an audio file. Currently there are following formats supported: - wave: played internally - flac: converted to wave, played internally - mp3: played externally - ogg/vorbis: played externally - midi: played externally All audio files must have the same format and the audio system must be opened with this format.
SEE ALSO
vg4->audio->open() vg4->audio->unload() vg4->audio->unload_group()