# HG changeset patch # User Chris Cannam # Date 1346667051 -3600 # Node ID 0f8a6dda8ac19b69c54ac57ba482d15c86e5ab2a # Parent c8ab5f63360d6f5d31b6caf0bbbaa229da26d80b Tidy diff -r c8ab5f63360d -r 0f8a6dda8ac1 data/fileio/CoreAudioFileReader.cpp --- a/data/fileio/CoreAudioFileReader.cpp Mon Sep 03 11:08:45 2012 +0100 +++ b/data/fileio/CoreAudioFileReader.cpp Mon Sep 03 11:10:51 2012 +0100 @@ -199,59 +199,15 @@ m_cancelled = true; } -/* -void -CoreAudioFileReader::DecodeThread::run() -{ - if (m_reader->m_cacheMode == CacheInTemporaryFile) { - m_reader->m_completion = 1; - m_reader->startSerialised("QuickTimeFileReader::Decode"); - } - - while (1) { - - UInt32 framesRead = m_reader->m_d->blockSize; - UInt32 extractionFlags = 0; - m_reader->m_d->err = MovieAudioExtractionFillBuffer - (m_reader->m_d->extractionSessionRef, &framesRead, - &m_reader->m_d->buffer, &extractionFlags); - if (m_reader->m_d->err) { - m_reader->m_error = QString("Error in QuickTime decoding: code %1") - .arg(m_reader->m_d->err); - break; - } - - // QuickTime buffers are interleaved unless specified otherwise - m_reader->addSamplesToDecodeCache(m_reader->m_d->data, framesRead); - - if (framesRead < m_reader->m_d->blockSize) break; - } - - m_reader->finishDecodeCache(); - - m_reader->m_d->err = MovieAudioExtractionEnd(m_reader->m_d->extractionSessionRef); - if (m_reader->m_d->err) { - m_reader->m_error = QString("Error ending QuickTime extraction session: code %1").arg(m_reader->m_d->err); - } - - m_reader->m_completion = 100; - m_reader->endSerialised(); -} -*/ - - void CoreAudioFileReader::getSupportedExtensions(std::set &extensions) { extensions.insert("aiff"); extensions.insert("aif"); extensions.insert("au"); - extensions.insert("avi"); extensions.insert("m4a"); extensions.insert("m4b"); extensions.insert("m4p"); - extensions.insert("m4v"); - extensions.insert("mov"); extensions.insert("mp3"); extensions.insert("mp4"); extensions.insert("wav"); @@ -272,9 +228,7 @@ type == "audio/x-wav" || type == "audio/mpeg" || type == "audio/basic" || - type == "audio/x-aac" || - type == "video/mp4" || - type == "video/quicktime"); + type == "audio/x-aac"); } bool