void al_bufferiv( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) { if (NULL == alBufferiv) mogl_glunsupported("alBufferiv"); alBufferiv((ALuint)mxGetScalar(prhs[0]), (ALenum)mxGetScalar(prhs[1]), (const ALint*)mxGetData(prhs[2])); }
value lime_al_bufferiv (value buffer, value param, value values) { int *data = val_array_int (values); if (data) { alBufferiv (val_int (buffer), val_int (param), data); } return alloc_null (); }
void lime_al_bufferiv (int buffer, int param, value values) { if (val_is_null (values) == false) { int size = val_array_size (values); ALint* data = new ALint[size]; for (int i = 0; i < size; ++i) { data[i] = (ALint)val_int( val_array_i (values, i) ); } alBufferiv (buffer, param, data); delete[] data; } }
ALvoid CDECL wine_alBufferiv(ALuint bid, ALenum param, const ALint* values) { alBufferiv(bid, param, values); }
//***************************************************************************** // alBufferiv //***************************************************************************** // ALAPI ALvoid ALAPIENTRY alBufferiv(ALuint bufferName, ALenum param, const ALint* values) { AL_VOID_FXN(alBufferiv(bufferName, param, values)); }