Lines Matching refs:m_fd
38 m_fd = open(dev_name.mb_str(), O_WRONLY);
39 if (m_fd == -1) {
53 ioctl(m_fd, SNDCTL_DSP_GETBLKSIZE, &m_bufsize);
58 close(m_fd);
67 if (m_fd > 0)
68 close(m_fd);
86 ret = read(m_fd, buffer, len);
108 ret = write(m_fd, buffer, len);
149 m_fd = open(m_devname.mb_str(), O_WRONLY);
150 if (m_fd == -1) {
158 ioctl(m_fd, SNDCTL_DSP_SPEED, &tmp);
168 ioctl(m_fd, SNDCTL_DSP_CHANNELS, &tmp);
173 close(m_fd);
213 ioctl(m_fd, SNDCTL_DSP_SETFMT, &tmp);
288 m_fd = open(m_devname.mb_str(), O_WRONLY);
290 m_fd = open(m_devname.mb_str(), O_RDONLY);
292 if (m_fd == -1) {
304 m_tag = gdk_input_add(m_fd, GDK_INPUT_WRITE, _wxSound_OSS_CBack, (gpointer)this);
309 m_tag = gdk_input_add(m_fd, GDK_INPUT_READ, _wxSound_OSS_CBack, (gpointer)this);
314 ioctl(m_fd, SNDCTL_DSP_SETTRIGGER, &trig);
331 close(m_fd);
358 ioctl(m_fd, SNDCTL_DSP_GETFMTS, &fmt_mask);