| DemoGL::Reference::Functions::DEMOGL_SoundSystemLoadElement |
int DEMOGL_SoundSystemLoadElement( const char *pszFilename, const int iElementType, const char *pszElementScriptID, const bool bUses3D );
| Sound element type | Description |
| DGL_SS_MP3ELEMENT | Sound element stored in the MP3 standard, i.e. MPEG v1.0 and v2.0 layer3. |
| DGL_SS_MODELEMENT | Sound element stored in one of the following formats: MOD, XM, IT, S3M or MTM. |
| DGL_SS_SAMPLEELEMENT | Sound element stored in the standard windows PCM format, or compressed with a custom CODEC. When you use a custom CODEC, this CODEC is required to be installed on the user's computer for the WAV to be decoded. So, you should either distribute the CODEC with your software, or use a CODEC that comes with Windows (eg. Microsoft ADPCM). |
| Error code | Description |
| DGL_SS_ERR_COULDNTLOAD | Sound element couldn't be loaded, probably filename related. |
| DGL_SS_ERR_ELEMENTSTOREFULL | The internal store for sound elements is full. See Definitions and defaults for the maximum amount of loadable sound elements at one time. |
| DGL_SS_ERR_INITOFELEMENTFAILED | The initialisation of the sound element failed. Errorcode of the underlying sound library is logged on the system console for in depth details. These errorcodes are defined in DemoGL_Bass.h. |
Last changed on 18-jan-2001
©1999-2001 Solutions Design