Lines Matching defs:hctl
50 void **hctl;
655 snd_hctl_t *hctl;
661 hctl = (snd_hctl_t *)get_C_ptr(obj, "get_C_hctl");
662 if (hctl == NULL)
664 err = snd_mixer_attach_hctl(pymixer->mixer, hctl);
666 PyErr_Format(PyExc_RuntimeError, "Cannot attach hctl: %s", snd_strerror(err));
669 hctls = realloc(pymixer->hctl, sizeof(void *) * (pymixer->hctl_count+1) * 2);
674 pymixer->hctl = hctls;
675 pymixer->hctl[pymixer->hctl_count*2] = (void *)hctl;
676 pymixer->hctl[pymixer->hctl_count*2+1] = (void *)obj;
764 pymixer->hctl = NULL;
778 snd_mixer_detach_hctl(self->mixer, self->hctl[idx*2]);
779 Py_DECREF((PyObject *)self->hctl[idx*2+1]);
781 if (self->hctl)
782 free(self->hctl);
784 self->hctl = NULL;
840 snd_hctl_t *hctl = snd_hctl_elem_get_hctl(helem);
845 if (pymixer->hctl[idx] == hctl) {
846 py_hctl = pymixer->hctl[idx*2+1];