Lines Matching defs:handle
82 struct loopback_handle *handle;
84 handle = calloc(1, sizeof(*handle));
85 if (handle == NULL)
89 handle->device = strdup(device);
90 if (handle->device == NULL) {
91 free(handle);
95 handle->ctldev = strdup(ctldev);
96 if (handle->ctldev == NULL) {
97 free(handle->device);
98 free(handle);
102 handle->ctldev = NULL;
106 handle->id = strdup(idbuf);
107 handle->access = SND_PCM_ACCESS_RW_INTERLEAVED;
108 handle->format = SND_PCM_FORMAT_S16_LE;
109 handle->rate = handle->rate_req = 48000;
110 handle->channels = 2;
111 handle->resample = 0;
112 *_handle = handle;
121 struct loopback *handle;
123 handle = calloc(1, sizeof(*handle));
124 if (handle == NULL)
126 handle->play = play;
127 handle->capt = capt;
128 play->loopback = handle;
129 capt->loopback = handle;
130 handle->latency_req = 0;
131 handle->latency_reqtime = 10000;
132 handle->loop_time = ~0UL;
133 handle->loop_limit = ~0ULL;
134 handle->output = output;
135 handle->state = output;
137 handle->src_enable = 1;
138 handle->src_converter_type = SRC_SINC_BEST_QUALITY;
140 *_handle = handle;
603 logit(LOG_CRIT, "Unable to create playback handle.\n");
608 logit(LOG_CRIT, "Unable to create capture handle.\n");
613 logit(LOG_CRIT, "Unable to create loopback handle.\n");