# LoadSound

## Description

Loads a sound file from the application media folder and returns the sound number. File paths must be relative, not absolute, you cannot load sound files from elsewhere on the disk.
Please note that compressed WAV files are not supported. You must use uncompressed WAV files to ensure compatibility on all platforms.

## Definition

integer LoadSound( sFilename )

UINT agk::LoadSound( const char* sFilename )

LoadSound( iID, sFilename )

void agk::LoadSound( UINT iID, const char* sFilename )

## Parameters

- sFilename - The filename of the sound file to load, must be a WAV file.
- iID - The sound number to store the sound.