-rw-r--r-- | noncore/multimedia/opierec/device.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/multimedia/opierec/device.cpp b/noncore/multimedia/opierec/device.cpp index f9a80c5..11071d8 100644 --- a/noncore/multimedia/opierec/device.cpp +++ b/noncore/multimedia/opierec/device.cpp | |||
@@ -1,19 +1,19 @@ | |||
1 | // device.cpp | 1 | // device.cpp |
2 | 2 | ||
3 | #include "device.h" | 3 | #include "device.h" |
4 | 4 | ||
5 | #include <qpe/config.h> | 5 | #include <qpe/config.h> |
6 | #include <qpe/qcopenvelope_qws.h> | 6 | #include <qpe/qcopenvelope_qws.h> |
7 | 7 | #include <qpe/custom.h> | |
8 | 8 | ||
9 | #include <fcntl.h> | 9 | #include <fcntl.h> |
10 | #include <stdio.h> | 10 | #include <stdio.h> |
11 | #include <stdlib.h> | 11 | #include <stdlib.h> |
12 | #include <sys/ioctl.h> | 12 | #include <sys/ioctl.h> |
13 | #include <sys/soundcard.h> | 13 | #include <sys/soundcard.h> |
14 | #include <unistd.h> | 14 | #include <unistd.h> |
15 | #include<sys/wait.h> | 15 | #include<sys/wait.h> |
16 | // #include <sys/stat.h> | 16 | // #include <sys/stat.h> |
17 | // #include <sys/time.h> | 17 | // #include <sys/time.h> |
18 | // #include <sys/types.h> | 18 | // #include <sys/types.h> |
19 | #include <unistd.h> | 19 | #include <unistd.h> |
@@ -281,25 +281,25 @@ int Device::getDeviceFormat() { | |||
281 | 281 | ||
282 | int Device::getDeviceRate() { | 282 | int Device::getDeviceRate() { |
283 | int dRate=0; | 283 | int dRate=0; |
284 | if (ioctl( sd, SOUND_PCM_READ_RATE, &dRate) == -1) { | 284 | if (ioctl( sd, SOUND_PCM_READ_RATE, &dRate) == -1) { |
285 | perror("ioctl(\"SNDCTL_PCM_READ_RATE\")"); | 285 | perror("ioctl(\"SNDCTL_PCM_READ_RATE\")"); |
286 | } | 286 | } |
287 | return dRate; | 287 | return dRate; |
288 | 288 | ||
289 | } | 289 | } |
290 | 290 | ||
291 | int Device::getDeviceBits() { | 291 | int Device::getDeviceBits() { |
292 | int dBits=0; | 292 | int dBits=0; |
293 | #ifndef QT_QWS_EBX // zaurus doesnt have this | 293 | #if !defined(OPIE_NO_SOUND_PCM_READ_BITS) // zaurus doesnt have this |
294 | if (ioctl( sd, SOUND_PCM_READ_BITS, &dBits) == -1) { | 294 | if (ioctl( sd, SOUND_PCM_READ_BITS, &dBits) == -1) { |
295 | perror("ioctl(\"SNDCTL_PCM_READ_BITS\")"); | 295 | perror("ioctl(\"SNDCTL_PCM_READ_BITS\")"); |
296 | } | 296 | } |
297 | #endif | 297 | #endif |
298 | return dBits; | 298 | return dBits; |
299 | } | 299 | } |
300 | 300 | ||
301 | int Device::getDeviceChannels() { | 301 | int Device::getDeviceChannels() { |
302 | int dCh=0; | 302 | int dCh=0; |
303 | if (ioctl( sd, SOUND_PCM_READ_CHANNELS, &dCh) == -1) { | 303 | if (ioctl( sd, SOUND_PCM_READ_CHANNELS, &dCh) == -1) { |
304 | perror("ioctl(\"SNDCTL_PCM_READ_CHANNELS\")"); | 304 | perror("ioctl(\"SNDCTL_PCM_READ_CHANNELS\")"); |
305 | } | 305 | } |