summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenri Herscher <henri@oreka.org>2006-02-09 22:40:06 +0000
committerHenri Herscher <henri@oreka.org>2006-02-09 22:40:06 +0000
commitb088db5d99591b5aff120406cdc6a8151754e6f7 (patch)
treedebd6d054fcec11b3ad9c6f9500ef3b3d06d4f14
parentc3b64955685023e81c37f4b86d0579e129010ad4 (diff)
Added a temp chunk reference so as to keep the input chunk (facilitates debugging)
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@159 09dcff7a-b715-0410-9601-b79a96267cd0
-rw-r--r--orkaudio/BatchProcessing.cpp19
1 files changed, 7 insertions, 12 deletions
diff --git a/orkaudio/BatchProcessing.cpp b/orkaudio/BatchProcessing.cpp
index 39145c7..5be8b74 100644
--- a/orkaudio/BatchProcessing.cpp
+++ b/orkaudio/BatchProcessing.cpp
@@ -81,6 +81,7 @@ void BatchProcessing::ThreadHandler(void *args)
fileRef->Open(AudioFile::READ);
AudioChunkRef chunkRef;
+ AudioChunkRef tmpChunkRef;
switch(CONFIG.m_storageAudioFormat)
{
@@ -130,27 +131,21 @@ void BatchProcessing::ThreadHandler(void *args)
voIpSession = true;
}
if(voIpSession)
- {
+ {
if(details.m_channel == 2)
{
decoder2->AudioChunkIn(chunkRef);
- decoder2->AudioChunkOut(chunkRef);
+ decoder2->AudioChunkOut(tmpChunkRef);
}
else
{
decoder1->AudioChunkIn(chunkRef);
- decoder1->AudioChunkOut(chunkRef);
+ decoder1->AudioChunkOut(tmpChunkRef);
}
- //if(details.m_channel == 1)
- //{
- filter->AudioChunkIn(chunkRef);
- filter->AudioChunkOut(chunkRef);
- //}
+ filter->AudioChunkIn(tmpChunkRef);
+ filter->AudioChunkOut(tmpChunkRef);
}
- //if(details.m_channel == 1)
- //{
- outFileRef->WriteChunk(chunkRef);
- //}
+ outFileRef->WriteChunk(tmpChunkRef);
}
fileRef->Close();