Home | History | Annotate | Download | only in wrapsim

Lines Matching refs:handle

22     snd_pcm_t *handle;
33 audioState->handle = NULL;
35 snd_pcm_open(&audioState->handle, "default", SND_PCM_STREAM_PLAYBACK, 0);
37 if (audioState->handle) {
40 snd_pcm_hw_params_any(audioState->handle, params);
41 snd_pcm_hw_params_set_access(audioState->handle, params, SND_PCM_ACCESS_RW_INTERLEAVED);
42 snd_pcm_hw_params_set_format(audioState->handle, params, SND_PCM_FORMAT_S16_LE);
44 snd_pcm_hw_params_set_rate_near(audioState->handle, params, &rate, NULL);
45 snd_pcm_hw_params_set_channels(audioState->handle, params, 2);
46 snd_pcm_hw_params(audioState->handle, params);
65 if (state->handle != NULL) {
66 snd_pcm_writei(state->handle, buf, count / 4);
77 * Handle event ioctls.
93 snd_pcm_close(state->handle);