freebsd-ports/audio/xanalyser/files/patch-src_pcm-oss.cc
Antoine Brodin ef7d74f43b MFH: r513504
Unbreak port due to missing dependencies
Regenerate bad non makepatch patch
Give to hamradio@ team

Reported by:		pkg-fallout
2019-10-05 20:38:58 +00:00

13 lines
464 B
C++

--- src/pcm-oss.cc.orig 2006-07-03 20:05:03 UTC
+++ src/pcm-oss.cc
@@ -100,7 +100,8 @@ PCMOSS::PCMOSS (const char* name, pcm_type_t type, pcm
}
int tmp_buffer_size = want_buffer_size;
- if (ioctl (fd, SNDCTL_DSP_GETBLKSIZE, &tmp_buffer_size) == -1) {
+ if (ioctl (fd, SNDCTL_DSP_SETBLKSIZE, &tmp_buffer_size) == -1 ||
+ ioctl (fd, SNDCTL_DSP_GETBLKSIZE, &tmp_buffer_size) == -1) {
cerr << "error " << strerror (errno) << '\n';
return;
}