diff options
author | Henri Herscher <henri@oreka.org> | 2006-07-26 16:23:53 +0000 |
---|---|---|
committer | Henri Herscher <henri@oreka.org> | 2006-07-26 16:23:53 +0000 |
commit | 71001d96e240d03a98a73688060d476dd5f7c875 (patch) | |
tree | 6643ce2ec2ba8a3da7aed6a3648ea6219a797358 /orkbasecxx/AudioTape.cpp | |
parent | 0f20be2ec5d75afc343cbe7ec35e3480723b4e99 (diff) |
Added command line mcf file transcoding -
The syntax is: #orkaudio transcode myfile.mcf
- The output has the format specified in config.xml.
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@310 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkbasecxx/AudioTape.cpp')
-rw-r--r-- | orkbasecxx/AudioTape.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/orkbasecxx/AudioTape.cpp b/orkbasecxx/AudioTape.cpp index 9697bc6..9bb7239 100644 --- a/orkbasecxx/AudioTape.cpp +++ b/orkbasecxx/AudioTape.cpp @@ -83,6 +83,19 @@ AudioTape::AudioTape(CStdString &portId) GenerateFilePathAndIdentifier(); } +AudioTape::AudioTape(CStdString &portId, CStdString& file) +{ + m_portId = portId; + + // Extract Path and Identifier + m_filePath = FilePath(file); + CStdString basename = FileBaseName(file); + m_fileIdentifier = FileStripExtension(basename); + + // Create the audiofile + m_audioFileRef.reset(new MediaChunkFile()); + m_audioFileRef->SetFilename(file); +} void AudioTape::AddAudioChunk(AudioChunkRef chunkRef) { |