summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2004-04-25 20:37:28 (UTC)
committer llornkcor <llornkcor>2004-04-25 20:37:28 (UTC)
commitae76c412a340a0808ed6ece5e4a8fbc04baa4ff3 (patch) (unidiff)
treea086457c05142e1ac2749844ffcb458d96550c6f
parent22d51bcaa58b90a3ffd4d429c43e6c24e1694ab3 (diff)
downloadopie-ae76c412a340a0808ed6ece5e4a8fbc04baa4ff3.zip
opie-ae76c412a340a0808ed6ece5e4a8fbc04baa4ff3.tar.gz
opie-ae76c412a340a0808ed6ece5e4a8fbc04baa4ff3.tar.bz2
soundcard descriptor mucking about
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/multimedia/opierec/device.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/multimedia/opierec/device.cpp b/noncore/multimedia/opierec/device.cpp
index 5319d97..db2d63f 100644
--- a/noncore/multimedia/opierec/device.cpp
+++ b/noncore/multimedia/opierec/device.cpp
@@ -345,13 +345,13 @@ bool Device::reset() {
345 345
346int Device::devRead(int soundDescriptor, short *buf, int size) { 346int Device::devRead(int soundDescriptor, short *buf, int size) {
347 int number = 0; 347 int number = 0;
348 number = ::read( soundDescriptor, (char *)buf, size); 348 number = ::read( sd /*soundDescriptor*/, (char *)buf, size);
349 return number; 349 return number;
350} 350}
351 351
352int Device::devWrite(int soundDescriptor, short * buf, int size) { 352int Device::devWrite(int soundDescriptor, short * buf, int size) {
353 int bytesWritten = 0; 353 int bytesWritten = 0;
354 bytesWritten = ::write( soundDescriptor, buf, size); 354 bytesWritten = ::write( sd /*soundDescriptor*/, buf, size);
355 return bytesWritten; 355 return bytesWritten;
356} 356}
357 357