wineoss.drv: Don't use SNDCTL_DSP_GETISPACE.
This shouldn't be needed as the device is opened in non-blocking mode, and it appears this function is unimplemented on PCBSD.
This commit is contained in:
parent
d301254e72
commit
50cdc6d7f3
|
@ -1493,20 +1493,11 @@ static void oss_write_data(ACImpl *This)
|
|||
static void oss_read_data(ACImpl *This)
|
||||
{
|
||||
UINT64 pos, readable;
|
||||
audio_buf_info bi;
|
||||
ssize_t nread;
|
||||
|
||||
if(ioctl(This->fd, SNDCTL_DSP_GETISPACE, &bi) < 0){
|
||||
WARN("GETISPACE failed: %d (%s)\n", errno, strerror(errno));
|
||||
return;
|
||||
}
|
||||
|
||||
pos = (This->held_frames + This->lcl_offs_frames) % This->bufsize_frames;
|
||||
readable = (This->bufsize_frames - pos) * This->fmt->nBlockAlign;
|
||||
|
||||
if(bi.bytes < readable)
|
||||
readable = bi.bytes;
|
||||
|
||||
nread = read(This->fd, This->local_buffer + pos * This->fmt->nBlockAlign,
|
||||
readable);
|
||||
if(nread < 0){
|
||||
|
|
Loading…
Reference in New Issue