Lines Matching refs:hctl
55 void **hctl;
724 snd_hctl_t *hctl;
730 hctl = (snd_hctl_t *)get_C_ptr(obj, "get_C_hctl");
731 if (hctl == NULL)
733 err = snd_mixer_attach_hctl(pymixer->mixer, hctl);
735 PyErr_Format(PyExc_RuntimeError, "Cannot attach hctl: %s", snd_strerror(err));
738 hctls = realloc(pymixer->hctl, sizeof(void *) * (pymixer->hctl_count+1) * 2);
743 pymixer->hctl = hctls;
744 pymixer->hctl[pymixer->hctl_count*2] = (void *)hctl;
745 pymixer->hctl[pymixer->hctl_count*2+1] = (void *)obj;
833 pymixer->hctl = NULL;
847 snd_mixer_detach_hctl(self->mixer, self->hctl[idx*2]);
848 Py_DECREF((PyObject *)self->hctl[idx*2+1]);
850 if (self->hctl)
851 free(self->hctl);
853 self->hctl = NULL;
908 snd_hctl_t *hctl = snd_hctl_elem_get_hctl(helem);
913 if (pymixer->hctl[idx] == hctl) {
914 py_hctl = pymixer->hctl[idx*2+1];