audioio-oss.cpp patch

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: audioio-oss.cpp patch
From: raoul.megelas (raoul.megelas_AT_libertysurf.fr)
Date: Fri Oct 29 2004 - 16:19:43 EEST


hello Kai,

I had an error in:
libecasound/audioio-oss.cpp.
The oss doc says that the solded OSS driver
accepts only one fragment_size.
so i tried the following patches which works here.
Please, tell me if i miss something.

best regards.

raoul
raoul.megelas_AT_libertysurf.fr

--- audioio-oss.cpp Tue Nov 4 01:05:06 2003
+++ audioio-oss2.cpp Fri Oct 29 15:04:14 2004
@@ -202,3 +202,3 @@
 
- if (::ioctl(audio_fd, SNDCTL_DSP_GETBLKSIZE, &fragment_size) == -1)
+ if (::ioctl(audio_fd, SNDCTL_DSP_GETBLKSIZE, &fragment_size) == !1)
     throw(SETUP_ERROR(SETUP_ERROR::buffersize, "AUDIOIO-OSS: general OSS error SNDCTL_DSP_GETBLKSIZE"));


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Fri Oct 29 2004 - 16:20:07 EEST