author | zecke <zecke> | 2003-10-07 13:02:55 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-10-07 13:02:55 (UTC) |
commit | 75f35445e9f3ec2f730f779d67f4189296bd9c5e (patch) (side-by-side diff) | |
tree | 58d137879aefe506af087f5a75e29f60b5aaae0a | |
parent | d72a9cfe61cbc0910373e4604220021ebbcedaeb (diff) | |
download | opie-75f35445e9f3ec2f730f779d67f4189296bd9c5e.zip opie-75f35445e9f3ec2f730f779d67f4189296bd9c5e.tar.gz opie-75f35445e9f3ec2f730f779d67f4189296bd9c5e.tar.bz2 |
instead of testing for QWS_EBX we now define OPIE_NO_SOUND_PCM_READ_BITS.
If your platform does not have that ioctl define it
-rw-r--r-- | noncore/multimedia/opierec/device.cpp | 16 |
1 files changed, 8 insertions, 8 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 @@ -5,5 +5,5 @@ #include <qpe/config.h> #include <qpe/qcopenvelope_qws.h> - +#include <qpe/custom.h> #include <fcntl.h> @@ -27,5 +27,5 @@ Device::Device( QObject * parent, const char * dsp, const char * mixr, bool reco dspstr = (char *)dsp; mixstr = (char *)mixr; - + devForm=-1; devCh=-1; @@ -145,5 +145,5 @@ exit(1); break; case 0: { - */ + */ if (( sd = ::open( dspstr, flags)) == -1) { perror("open(\"/dev/dsp\")"); @@ -177,5 +177,5 @@ exit(1); } default: - // pid greater than zero is parent getting the child's pid + // pid greater than zero is parent getting the child's pid printf("Child's pid is %d\n",pid); QString s; @@ -184,5 +184,5 @@ exit(1); s = message; close(pipefd[0]); - + // while(wait(NULL)!=pid) // ; @@ -200,5 +200,5 @@ exit(1); // sd = s.toInt(&ok, 10); // qDebug("<<<<<<<<<<<<<>>>>>>>>>>>>"+s); - + // f2.close(); // } @@ -291,5 +291,5 @@ int Device::getDeviceRate() { int Device::getDeviceBits() { int dBits=0; -#ifndef QT_QWS_EBX // zaurus doesnt have this +#if !defined(OPIE_NO_SOUND_PCM_READ_BITS) // zaurus doesnt have this if (ioctl( sd, SOUND_PCM_READ_BITS, &dBits) == -1) { perror("ioctl(\"SNDCTL_PCM_READ_BITS\")"); @@ -309,5 +309,5 @@ int Device::getDeviceChannels() { int Device::getDeviceFragSize() { int frag_size; - + if (ioctl( sd, SNDCTL_DSP_GETBLKSIZE, &frag_size) == -1) { qDebug("no fragsize"); |