Mercurial > hg > svcore
comparison data/fileio/AudioFileSizeEstimator.cpp @ 1605:d83ab62cdc28
Merge from branch bqaudiostream
author | Chris Cannam |
---|---|
date | Wed, 30 Jan 2019 14:57:12 +0000 |
parents | ce185d4dd408 |
children |
comparison
equal
deleted
inserted
replaced
1586:841b2a3e606d | 1605:d83ab62cdc28 |
---|---|
81 } | 81 } |
82 } | 82 } |
83 | 83 |
84 if (extension == "ogg" || extension == "oga" || | 84 if (extension == "ogg" || extension == "oga" || |
85 extension == "m4a" || extension == "mp3" || | 85 extension == "m4a" || extension == "mp3" || |
86 extension == "wma") { | 86 extension == "wma" || extension == "opus") { |
87 | 87 |
88 // Usually a lossy file. Compression ratios can vary | 88 // Usually a lossy file. Compression ratios can vary |
89 // dramatically, but don't usually exceed about 20x compared | 89 // dramatically, but don't usually exceed about 20x compared |
90 // to 16-bit PCM (e.g. a 128kbps mp3 has 11x ratio over WAV at | 90 // to 16-bit PCM (e.g. a 128kbps mp3 has 11x ratio over WAV at |
91 // 44.1kHz). We can estimate the number of samples to be file | 91 // 44.1kHz). We can estimate the number of samples to be file |