Пример #1
0
EXPORT(sqInt) primitiveSoundSetLeftVolume(void) {
	double aLeftVolume;
	double aRightVolume;

	aLeftVolume = interpreterProxy->stackFloatValue(1);
	aRightVolume = interpreterProxy->stackFloatValue(0);
	if (interpreterProxy->failed()) {
		return null;
	}
	if (!(interpreterProxy->failed())) {
		snd_SetVolume(aLeftVolume,aRightVolume);
	}
	if (interpreterProxy->failed()) {
		return null;
	}
	interpreterProxy->pop(2);
	return null;
}
primitiveSoundSetLeftVolume(void)
{
	// SoundPlugin>>#primitiveSoundSetLeftVolume
	double aLeftVolume;
	double aRightVolume;

	aLeftVolume = stackFloatValue(1);
	aRightVolume = stackFloatValue(0);
	if (failed()) {
		return null;
	}
	if (!(failed())) {
		snd_SetVolume(aLeftVolume,aRightVolume);
	}
	if (failed()) {
		return null;
	}
	pop(2);
	return null;
}