Modified:
/trunk/Source/SoundflowerEngine.cpp
=======================================
--- /trunk/Source/SoundflowerEngine.cpp Fri Mar 12 10:30:21 2010
+++ /trunk/Source/SoundflowerEngine.cpp Fri Mar 12 10:30:29 2010
@@ -44,7 +44,7 @@
bool result = false;
OSNumber *number = NULL;
- //IOLog("SoundflowerEngine[%p]::init()\n", this);
+ //IOLog("SoundflowerEngine[%p]::init()\n", this);
if (!super::init(properties)) {
goto Done;
@@ -204,8 +204,8 @@
goto Error;
}
- snprintf(inputStreamName, 64, "Soundflower Input Stream #%ul",
streamNum + 1);
- snprintf(outputStreamName, 64, "Soundflower Output Stream #%ul",
streamNum + 1);
+ snprintf(inputStreamName, 64, "Soundflower Input Stream #%u",
streamNum + 1);
+ snprintf(outputStreamName, 64, "Soundflower Output Stream #%u",
streamNum + 1);
if (!inputStream->initWithAudioEngine(this,
kIOAudioStreamDirectionInput, startingChannelID, inputStreamName) ||
!outputStream->initWithAudioEngine(this,
kIOAudioStreamDirectionOutput, startingChannelID, outputStreamName)) {
@@ -377,7 +377,7 @@
void SoundflowerEngine::free()
{
- //IOLog("SoundflowerEngine[%p]::free()\n", this);
+ //IOLog("SoundflowerEngine[%p]::free()\n", this);
// We need to free our resources when we're going away
@@ -539,7 +539,9 @@
UInt32 offset = firstSampleFrame * channelCount;
UInt32 byteOffset = offset * sizeof(float);
UInt32 numBytes = numSampleFrames * channelCount * sizeof(float);
-
+
+//IOLog("SoundflowerEngine[%p]::clipOutputSamples() -- channelCount:%u
\n", this, (uint)channelCount);
+
if (((SoundflowerDevice *)audioDevice)->mMuteIn[0])
{
memset((UInt8 *)thruBuffer + byteOffset, 0, numBytes);
@@ -579,6 +581,8 @@
UInt32 offset;
UInt32 frameSize = streamFormat->fNumChannels * sizeof(float);
offset = firstSampleFrame * frameSize;
+
+//IOLog("SoundflowerEngine[%p]::convertInputSamples() -- channelCount:%u
\n", this, (uint)streamFormat->fNumChannels);
if (((SoundflowerDevice *)audioDevice)->mMuteOut[0])
memset((UInt8 *)destBuf, 0, numSampleFrames * frameSize);