Ejemplo n.º 1
0
void al_getbufferiv( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {

	if (NULL == alGetBufferiv) mogl_glunsupported("alGetBufferiv");
	alGetBufferiv((ALuint)mxGetScalar(prhs[0]),
		(ALenum)mxGetScalar(prhs[1]),
		(ALint*)mxGetData(prhs[2]));

}
Ejemplo n.º 2
0
	value lime_al_get_bufferiv (int buffer, int param, int count) {
		
		ALint* values = new ALint[count];
		alGetBufferiv (buffer, param, values);
		
		value result = alloc_array (count);
		
		for (int i = 0; i < count; i++) {
			
			val_array_set_i (result, i, alloc_int (values[i]));
			
		}
		
		delete [] values;
		return result;
		
	}
Ejemplo n.º 3
0
value lime_al_get_bufferiv (value buffer, value param, value count) {

    int length = val_int (count);
    ALint* values = new ALint[length];

    alGetBufferiv (val_int (buffer), val_int (param), values);

    value result = alloc_array (length);

    for (int i = 0; i < length; ++i) {

        val_array_set_i (result, i, alloc_int (values[i]));

    }

    return result;

}
Ejemplo n.º 4
0
ALvoid CDECL wine_alGetBufferiv(ALuint bid, ALenum param, ALint* values)
{
    alGetBufferiv(bid, param, values);
}
Ejemplo n.º 5
0
//*****************************************************************************
// alGetBufferiv
//*****************************************************************************
//
ALAPI ALvoid ALAPIENTRY alGetBufferiv(ALuint bufferName, ALenum param, ALint* values)
{
    AL_VOID_FXN(alGetBufferiv(bufferName, param, values));
}