comparison data/fileio/AudioFileSizeEstimator.cpp @ 1592:f8e3dcbafb4d bqaudiostream

Implement title/maker in wav readers; extra handling of supported-ness for file types
author Chris Cannam
date Mon, 21 Jan 2019 13:16:17 +0000
parents aadfb395e933
children ce185d4dd408
comparison
equal deleted inserted replaced
1591:6e68bd92ee21 1592:f8e3dcbafb4d
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