diff options
author | Henri Herscher <henri@oreka.org> | 2005-12-06 17:27:50 +0000 |
---|---|---|
committer | Henri Herscher <henri@oreka.org> | 2005-12-06 17:27:50 +0000 |
commit | 57834e7e773ec0719b01ada6552674caa81adc61 (patch) | |
tree | 28a99e0122bb08dbdadd305ee182d0d7cb5b4fe2 /orkaudio/AudioTape.cpp | |
parent | df29199359505bcd1dfe84d4b06224ebcf4f3b8d (diff) |
Sample rate can now be different than 8KHz
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@94 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkaudio/AudioTape.cpp')
-rw-r--r-- | orkaudio/AudioTape.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/orkaudio/AudioTape.cpp b/orkaudio/AudioTape.cpp index 05f2867..6c24641 100644 --- a/orkaudio/AudioTape.cpp +++ b/orkaudio/AudioTape.cpp @@ -138,7 +138,7 @@ void AudioTape::Write() { // A file format was successfully added to the tape, open it CStdString file = CONFIG.m_audioOutputPath + "/" + m_filePath + m_fileIdentifier; - m_audioFileRef->Open(file, AudioFile::WRITE); + m_audioFileRef->Open(file, AudioFile::WRITE, false, chunkRef->m_sampleRate); // determine what final extension the file will have after optional compression if(CONFIG.m_storageAudioFormat == FfNative) @@ -262,6 +262,7 @@ void AudioTape::GetMessage(MessageRef& msgRef) pTapeMsg->m_timestamp = m_endDate; } + pTapeMsg->m_recId = m_fileIdentifier; pTapeMsg->m_fileName = m_filePath + m_fileIdentifier + m_fileExtension; pTapeMsg-> m_stage = CaptureEvent::EventTypeToString(captureEventRef->m_type); pTapeMsg->m_capturePort = m_portId; |