From 1bd2c207b52e2030642f4b5186206aefb5e3c428 Mon Sep 17 00:00:00 2001 From: darkeye Date: Mon, 13 Nov 2000 20:05:07 +0000 Subject: [PATCH] changed to workaround to start recording so that it reads one sample per channel, as opposed to only one sample (which misalignes the channels) --- darkice/trunk/src/OssDspSource.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/darkice/trunk/src/OssDspSource.cpp b/darkice/trunk/src/OssDspSource.cpp index 12ba8b0..ae86e5e 100644 --- a/darkice/trunk/src/OssDspSource.cpp +++ b/darkice/trunk/src/OssDspSource.cpp @@ -199,9 +199,9 @@ OssDspSource :: canRead ( unsigned int sec, if ( !running ) { /* ugly workaround to get the dsp into recording state */ - unsigned char b[getBitsPerSample()/8]; + unsigned char b[getChannel()*getBitsPerSample()/8]; - read( b, getBitsPerSample()/8); + read( b, getChannel()*getBitsPerSample()/8); } FD_ZERO( &fdset); @@ -264,6 +264,10 @@ OssDspSource :: close ( void ) throw ( Exception ) $Source$ $Log$ + Revision 1.4 2000/11/13 20:05:07 darkeye + changed to workaround to start recording so that it reads one sample + per channel, as opposed to only one sample (which misalignes the channels) + Revision 1.3 2000/11/12 13:31:40 darkeye added kdoc-style documentation comments