From 84af289057291a49a52a60b390bc5320c02b5a55 Mon Sep 17 00:00:00 2001 From: llornkcor Date: Sat, 12 Mar 2005 01:54:52 +0000 Subject: fix irregularity with adpcm and bits --- (limited to 'noncore/multimedia/opierec/device.cpp') diff --git a/noncore/multimedia/opierec/device.cpp b/noncore/multimedia/opierec/device.cpp index e7e0f4b..a76665e 100644 --- a/noncore/multimedia/opierec/device.cpp +++ b/noncore/multimedia/opierec/device.cpp @@ -58,10 +58,11 @@ Device::Device( QObject * parent, bool record ) devRate = -1; if( !record){ //playing - owarn << "setting up DSP for playing" << oendl; - flags = O_WRONLY; + owarn << "New Sound device DSP for playing" << oendl; + flags = O_RDWR; +// flags = O_WRONLY; } else { //recording - owarn << "setting up DSP for recording" << oendl; + owarn << "New Sound device DSP for recording" << oendl; flags = O_RDWR; // flags = O_RDONLY; selectMicInput(); @@ -69,6 +70,7 @@ Device::Device( QObject * parent, bool record ) } bool Device::openDsp() { + qWarning("Device::openDsp()"); if( openDevice( flags) == -1) { perror("<<<<<<<<<<<<<