Changeset 391 for python/trunk/Modules/ossaudiodev.c
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Modules/ossaudiodev.c
r2 r391 17 17 * XXX need a license statement 18 18 * 19 * $Id : ossaudiodev.c 64048 2008-06-09 04:58:54Z gregory.p.smith$19 * $Id$ 20 20 */ 21 21 … … 130 130 131 131 if (ioctl(fd, SNDCTL_DSP_GETFMTS, &afmts) == -1) { 132 close(fd); 132 133 PyErr_SetFromErrnoWithFilename(PyExc_IOError, devicename); 133 134 return NULL; … … 215 216 216 217 /* _do_ioctl_1() is a private helper function used for the OSS ioctls -- 217 SNDCTL_DSP_{SETFMT,CHANNELS,SPEED} -- that thatare called from C218 SNDCTL_DSP_{SETFMT,CHANNELS,SPEED} -- that are called from C 218 219 like this: 219 220 ioctl(fd, SNDCTL_DSP_cmd, &arg) … … 426 427 return NULL; 427 428 429 if (!_PyIsSelectable_fd(self->fd)) { 430 PyErr_SetString(PyExc_ValueError, 431 "file descriptor out of range for select"); 432 return NULL; 433 } 428 434 /* use select to wait for audio device to be available */ 429 435 FD_ZERO(&write_set_fds);
Note:
See TracChangeset
for help on using the changeset viewer.