Example #1
0
	void AudioSquall::loadSound(const char *name, Sound &s) {

		releaseSound(s);
		SquallSound &sound = (SquallSound &)s;
		sound.id = SQUALL_Sample_LoadFile(const_cast<char *>(name), 1, 0);
		if (sound.id < 0) {
			fatal("AudioSquall::load(): can`t load sound \"%s\".", name);
		}

	}
Example #2
0
HEFFECT CALL HGE_Impl::Effect_Load(const char *filename, DWORD size)
{
    return SQUALL_Sample_LoadFile((char*)filename, 1, 0);
    return 0;
}