cinap_lenrekadd hg and python4bb9e2215 years agoHistory
3226 lines · 79.7 KB · C
RawDownload
	if (m == NULL)		return; 	/* Add some symbolic constants to the module */	d = PyModule_GetDict(m);	ErrorObject = PyErr_NewException("al.error", NULL, NULL);	PyDict_SetItemString(d, "error", ErrorObject); 	/* XXXX Add constants here */#ifdef AL_4CHANNEL	x =  PyInt_FromLong((long) AL_4CHANNEL);	if (x == NULL || PyDict_SetItemString(d, "FOURCHANNEL", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_ADAT_IF_TYPE	x =  PyInt_FromLong((long) AL_ADAT_IF_TYPE);	if (x == NULL || PyDict_SetItemString(d, "ADAT_IF_TYPE", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_ADAT_MCLK_TYPE	x =  PyInt_FromLong((long) AL_ADAT_MCLK_TYPE);	if (x == NULL || PyDict_SetItemString(d, "ADAT_MCLK_TYPE", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_AES_IF_TYPE	x =  PyInt_FromLong((long) AL_AES_IF_TYPE);	if (x == NULL || PyDict_SetItemString(d, "AES_IF_TYPE", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_AES_MCLK_TYPE	x =  PyInt_FromLong((long) AL_AES_MCLK_TYPE);	if (x == NULL || PyDict_SetItemString(d, "AES_MCLK_TYPE", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_ANALOG_IF_TYPE	x =  PyInt_FromLong((long) AL_ANALOG_IF_TYPE);	if (x == NULL || PyDict_SetItemString(d, "ANALOG_IF_TYPE", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_ASSOCIATE	x =  PyInt_FromLong((long) AL_ASSOCIATE);	if (x == NULL || PyDict_SetItemString(d, "ASSOCIATE", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_BAD_BUFFER_NULL	x =  PyInt_FromLong((long) AL_BAD_BUFFER_NULL);	if (x == NULL || PyDict_SetItemString(d, "BAD_BUFFER_NULL", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_BAD_BUFFERLENGTH	x =  PyInt_FromLong((long) AL_BAD_BUFFERLENGTH);	if (x == NULL || PyDict_SetItemString(d, "BAD_BUFFERLENGTH", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_BAD_BUFFERLENGTH_NEG	x =  PyInt_FromLong((long) AL_BAD_BUFFERLENGTH_NEG);	if (x == NULL || PyDict_SetItemString(d, "BAD_BUFFERLENGTH_NEG", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_BAD_BUFFERLENGTH_ODD	x =  PyInt_FromLong((long) AL_BAD_BUFFERLENGTH_ODD);	if (x == NULL || PyDict_SetItemString(d, "BAD_BUFFERLENGTH_ODD", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_BAD_CHANNELS	x =  PyInt_FromLong((long) AL_BAD_CHANNELS);	if (x == NULL || PyDict_SetItemString(d, "BAD_CHANNELS", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_BAD_CONFIG	x =  PyInt_FromLong((long) AL_BAD_CONFIG);	if (x == NULL || PyDict_SetItemString(d, "BAD_CONFIG", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_BAD_COUNT_NEG	x =  PyInt_FromLong((long) AL_BAD_COUNT_NEG);	if (x == NULL || PyDict_SetItemString(d, "BAD_COUNT_NEG", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_BAD_DEVICE	x =  PyInt_FromLong((long) AL_BAD_DEVICE);	if (x == NULL || PyDict_SetItemString(d, "BAD_DEVICE", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_BAD_DEVICE_ACCESS	x =  PyInt_FromLong((long) AL_BAD_DEVICE_ACCESS);	if (x == NULL || PyDict_SetItemString(d, "BAD_DEVICE_ACCESS", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_BAD_DIRECTION	x =  PyInt_FromLong((long) AL_BAD_DIRECTION);	if (x == NULL || PyDict_SetItemString(d, "BAD_DIRECTION", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_BAD_FILLPOINT	x =  PyInt_FromLong((long) AL_BAD_FILLPOINT);	if (x == NULL || PyDict_SetItemString(d, "BAD_FILLPOINT", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_BAD_FLOATMAX	x =  PyInt_FromLong((long) AL_BAD_FLOATMAX);	if (x == NULL || PyDict_SetItemString(d, "BAD_FLOATMAX", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_BAD_ILLEGAL_STATE	x =  PyInt_FromLong((long) AL_BAD_ILLEGAL_STATE);	if (x == NULL || PyDict_SetItemString(d, "BAD_ILLEGAL_STATE", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_BAD_NO_PORTS	x =  PyInt_FromLong((long) AL_BAD_NO_PORTS);	if (x == NULL || PyDict_SetItemString(d, "BAD_NO_PORTS", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_BAD_NOT_FOUND	x =  PyInt_FromLong((long) AL_BAD_NOT_FOUND);	if (x == NULL || PyDict_SetItemString(d, "BAD_NOT_FOUND", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_BAD_NOT_IMPLEMENTED	x =  PyInt_FromLong((long) AL_BAD_NOT_IMPLEMENTED);	if (x == NULL || PyDict_SetItemString(d, "BAD_NOT_IMPLEMENTED", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_BAD_OUT_OF_MEM	x =  PyInt_FromLong((long) AL_BAD_OUT_OF_MEM);	if (x == NULL || PyDict_SetItemString(d, "BAD_OUT_OF_MEM", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_BAD_PARAM	x =  PyInt_FromLong((long) AL_BAD_PARAM);	if (x == NULL || PyDict_SetItemString(d, "BAD_PARAM", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_BAD_PERMISSIONS	x =  PyInt_FromLong((long) AL_BAD_PERMISSIONS);	if (x == NULL || PyDict_SetItemString(d, "BAD_PERMISSIONS", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_BAD_PORT	x =  PyInt_FromLong((long) AL_BAD_PORT);	if (x == NULL || PyDict_SetItemString(d, "BAD_PORT", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_BAD_PORTSTYLE	x =  PyInt_FromLong((long) AL_BAD_PORTSTYLE);	if (x == NULL || PyDict_SetItemString(d, "BAD_PORTSTYLE", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_BAD_PVBUFFER	x =  PyInt_FromLong((long) AL_BAD_PVBUFFER);	if (x == NULL || PyDict_SetItemString(d, "BAD_PVBUFFER", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_BAD_QSIZE	x =  PyInt_FromLong((long) AL_BAD_QSIZE);	if (x == NULL || PyDict_SetItemString(d, "BAD_QSIZE", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_BAD_RATE	x =  PyInt_FromLong((long) AL_BAD_RATE);	if (x == NULL || PyDict_SetItemString(d, "BAD_RATE", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_BAD_RESOURCE	x =  PyInt_FromLong((long) AL_BAD_RESOURCE);	if (x == NULL || PyDict_SetItemString(d, "BAD_RESOURCE", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_BAD_SAMPFMT	x =  PyInt_FromLong((long) AL_BAD_SAMPFMT);	if (x == NULL || PyDict_SetItemString(d, "BAD_SAMPFMT", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_BAD_TRANSFER_SIZE	x =  PyInt_FromLong((long) AL_BAD_TRANSFER_SIZE);	if (x == NULL || PyDict_SetItemString(d, "BAD_TRANSFER_SIZE", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_BAD_WIDTH	x =  PyInt_FromLong((long) AL_BAD_WIDTH);	if (x == NULL || PyDict_SetItemString(d, "BAD_WIDTH", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_CHANNEL_MODE	x =  PyInt_FromLong((long) AL_CHANNEL_MODE);	if (x == NULL || PyDict_SetItemString(d, "CHANNEL_MODE", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_CHANNELS	x =  PyInt_FromLong((long) AL_CHANNELS);	if (x == NULL || PyDict_SetItemString(d, "CHANNELS", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_CHAR_ELEM	x =  PyInt_FromLong((long) AL_CHAR_ELEM);	if (x == NULL || PyDict_SetItemString(d, "CHAR_ELEM", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_CLOCK_GEN	x =  PyInt_FromLong((long) AL_CLOCK_GEN);	if (x == NULL || PyDict_SetItemString(d, "CLOCK_GEN", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_CLOCKGEN_TYPE	x =  PyInt_FromLong((long) AL_CLOCKGEN_TYPE);	if (x == NULL || PyDict_SetItemString(d, "CLOCKGEN_TYPE", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_CONNECT	x =  PyInt_FromLong((long) AL_CONNECT);	if (x == NULL || PyDict_SetItemString(d, "CONNECT", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_CONNECTION_TYPE	x =  PyInt_FromLong((long) AL_CONNECTION_TYPE);	if (x == NULL || PyDict_SetItemString(d, "CONNECTION_TYPE", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_CONNECTIONS	x =  PyInt_FromLong((long) AL_CONNECTIONS);	if (x == NULL || PyDict_SetItemString(d, "CONNECTIONS", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_CRYSTAL_MCLK_TYPE	x =  PyInt_FromLong((long) AL_CRYSTAL_MCLK_TYPE);	if (x == NULL || PyDict_SetItemString(d, "CRYSTAL_MCLK_TYPE", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_DEFAULT_DEVICE	x =  PyInt_FromLong((long) AL_DEFAULT_DEVICE);	if (x == NULL || PyDict_SetItemString(d, "DEFAULT_DEVICE", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_DEFAULT_INPUT	x =  PyInt_FromLong((long) AL_DEFAULT_INPUT);	if (x == NULL || PyDict_SetItemString(d, "DEFAULT_INPUT", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_DEFAULT_OUTPUT	x =  PyInt_FromLong((long) AL_DEFAULT_OUTPUT);	if (x == NULL || PyDict_SetItemString(d, "DEFAULT_OUTPUT", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_DEST	x =  PyInt_FromLong((long) AL_DEST);	if (x == NULL || PyDict_SetItemString(d, "DEST", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_DEVICE_TYPE	x =  PyInt_FromLong((long) AL_DEVICE_TYPE);	if (x == NULL || PyDict_SetItemString(d, "DEVICE_TYPE", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_DEVICES	x =  PyInt_FromLong((long) AL_DEVICES);	if (x == NULL || PyDict_SetItemString(d, "DEVICES", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_DIGITAL_IF_TYPE	x =  PyInt_FromLong((long) AL_DIGITAL_IF_TYPE);	if (x == NULL || PyDict_SetItemString(d, "DIGITAL_IF_TYPE", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_DIGITAL_INPUT_RATE	x =  PyInt_FromLong((long) AL_DIGITAL_INPUT_RATE);	if (x == NULL || PyDict_SetItemString(d, "DIGITAL_INPUT_RATE", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_DISCONNECT	x =  PyInt_FromLong((long) AL_DISCONNECT);	if (x == NULL || PyDict_SetItemString(d, "DISCONNECT", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_ENUM_ELEM	x =  PyInt_FromLong((long) AL_ENUM_ELEM);	if (x == NULL || PyDict_SetItemString(d, "ENUM_ELEM", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_ENUM_VALUE	x =  PyInt_FromLong((long) AL_ENUM_VALUE);	if (x == NULL || PyDict_SetItemString(d, "ENUM_VALUE", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_ERROR_INPUT_OVERFLOW	x =  PyInt_FromLong((long) AL_ERROR_INPUT_OVERFLOW);	if (x == NULL || PyDict_SetItemString(d, "ERROR_INPUT_OVERFLOW", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_ERROR_LENGTH	x =  PyInt_FromLong((long) AL_ERROR_LENGTH);	if (x == NULL || PyDict_SetItemString(d, "ERROR_LENGTH", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_ERROR_LOCATION_LSP	x =  PyInt_FromLong((long) AL_ERROR_LOCATION_LSP);	if (x == NULL || PyDict_SetItemString(d, "ERROR_LOCATION_LSP", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_ERROR_LOCATION_MSP	x =  PyInt_FromLong((long) AL_ERROR_LOCATION_MSP);	if (x == NULL || PyDict_SetItemString(d, "ERROR_LOCATION_MSP", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_ERROR_NUMBER	x =  PyInt_FromLong((long) AL_ERROR_NUMBER);	if (x == NULL || PyDict_SetItemString(d, "ERROR_NUMBER", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_ERROR_OUTPUT_UNDERFLOW	x =  PyInt_FromLong((long) AL_ERROR_OUTPUT_UNDERFLOW);	if (x == NULL || PyDict_SetItemString(d, "ERROR_OUTPUT_UNDERFLOW", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_ERROR_TYPE	x =  PyInt_FromLong((long) AL_ERROR_TYPE);	if (x == NULL || PyDict_SetItemString(d, "ERROR_TYPE", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_FIXED_ELEM	x =  PyInt_FromLong((long) AL_FIXED_ELEM);	if (x == NULL || PyDict_SetItemString(d, "FIXED_ELEM", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_FIXED_MCLK_TYPE	x =  PyInt_FromLong((long) AL_FIXED_MCLK_TYPE);	if (x == NULL || PyDict_SetItemString(d, "FIXED_MCLK_TYPE", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_GAIN	x =  PyInt_FromLong((long) AL_GAIN);	if (x == NULL || PyDict_SetItemString(d, "GAIN", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_GAIN_REF	x =  PyInt_FromLong((long) AL_GAIN_REF);	if (x == NULL || PyDict_SetItemString(d, "GAIN_REF", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_HRB_TYPE	x =  PyInt_FromLong((long) AL_HRB_TYPE);	if (x == NULL || PyDict_SetItemString(d, "HRB_TYPE", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_INPUT_COUNT	x =  PyInt_FromLong((long) AL_INPUT_COUNT);	if (x == NULL || PyDict_SetItemString(d, "INPUT_COUNT", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_INPUT_DEVICE_TYPE	x =  PyInt_FromLong((long) AL_INPUT_DEVICE_TYPE);	if (x == NULL || PyDict_SetItemString(d, "INPUT_DEVICE_TYPE", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_INPUT_DIGITAL	x =  PyInt_FromLong((long) AL_INPUT_DIGITAL);	if (x == NULL || PyDict_SetItemString(d, "INPUT_DIGITAL", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_INPUT_HRB_TYPE	x =  PyInt_FromLong((long) AL_INPUT_HRB_TYPE);	if (x == NULL || PyDict_SetItemString(d, "INPUT_HRB_TYPE", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_INPUT_LINE	x =  PyInt_FromLong((long) AL_INPUT_LINE);	if (x == NULL || PyDict_SetItemString(d, "INPUT_LINE", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_INPUT_MIC	x =  PyInt_FromLong((long) AL_INPUT_MIC);	if (x == NULL || PyDict_SetItemString(d, "INPUT_MIC", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_INPUT_PORT_TYPE	x =  PyInt_FromLong((long) AL_INPUT_PORT_TYPE);	if (x == NULL || PyDict_SetItemString(d, "INPUT_PORT_TYPE", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_INPUT_RATE	x =  PyInt_FromLong((long) AL_INPUT_RATE);	if (x == NULL || PyDict_SetItemString(d, "INPUT_RATE", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_INPUT_SOURCE	x =  PyInt_FromLong((long) AL_INPUT_SOURCE);	if (x == NULL || PyDict_SetItemString(d, "INPUT_SOURCE", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_INT32_ELEM	x =  PyInt_FromLong((long) AL_INT32_ELEM);	if (x == NULL || PyDict_SetItemString(d, "INT32_ELEM", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_INT64_ELEM	x =  PyInt_FromLong((long) AL_INT64_ELEM);	if (x == NULL || PyDict_SetItemString(d, "INT64_ELEM", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_INTERFACE	x =  PyInt_FromLong((long) AL_INTERFACE);	if (x == NULL || PyDict_SetItemString(d, "INTERFACE", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_INTERFACE_TYPE	x =  PyInt_FromLong((long) AL_INTERFACE_TYPE);	if (x == NULL || PyDict_SetItemString(d, "INTERFACE_TYPE", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_INVALID_PARAM	x =  PyInt_FromLong((long) AL_INVALID_PARAM);	if (x == NULL || PyDict_SetItemString(d, "INVALID_PARAM", x) < 0)		goto error;	Py_DECREF(x);#endif#ifdef AL_INVALID_VALUE	x =  PyInt_FromLong((long) AL_INVALID_VALUE);	if (x == NULL || PyDict_SetItemString(d, "INVALID_VALUE", x) < 0)		goto error;	Py_DECREF(x);

Lines 2001–2500 of 3226. Previous lines