comparison data/fileio/MP3FileReader.cpp @ 264:260032c26c4f

* don't store fft values scaled by fftsize/2; that's a special requirement for the spectrogram, and other applications will not expect it -- make the spectrogram do that scaling itself * add a higher-resolution memory cache (still polar, though) as an alternative to the 16-bit compact cache * don't use the memory cache if we want rectangular coords (unless the disc cache is totally infeasible) as conversion slows it down anyway * avoid redundant rectangular -> polar -> rectangular conversion when storing values in a rectangular-mode disc cache
author Chris Cannam
date Fri, 01 Jun 2007 13:56:35 +0000
parents 71dfc6ab3b54
children e08f486e8d8c
comparison
equal deleted inserted replaced
263:71dfc6ab3b54 264:260032c26c4f
29 #include <QFileInfo> 29 #include <QFileInfo>
30 #include <QProgressDialog> 30 #include <QProgressDialog>
31 31
32 MP3FileReader::MP3FileReader(QString path, DecodeMode decodeMode, CacheMode mode) : 32 MP3FileReader::MP3FileReader(QString path, DecodeMode decodeMode, CacheMode mode) :
33 CodedAudioFileReader(mode), 33 CodedAudioFileReader(mode),
34 m_path(path) 34 m_path(path),
35 m_decodeThread(0)
35 { 36 {
36 m_frameCount = 0; 37 m_frameCount = 0;
37 m_channelCount = 0; 38 m_channelCount = 0;
38 m_sampleRate = 0; 39 m_sampleRate = 0;
39 m_fileSize = 0; 40 m_fileSize = 0;