frameworks/av
Revision | 67044030d8ceb4a875b2a35f5dffd5311a7f3815 (tree) |
---|---|
Time | 2015-12-22 13:09:54 |
Author | Billy <xiaobing.feng@wind...> |
Commiter | Chih-Wei Huang |
FLACExtractor: Add more sample rates support
In FLACExtractor.cpp, it has function to check file's sample rate.
If the input sample rate is not in its list, it will return "unsupported
sample rate" issue. Modify code to make other sample rates (100,1k,42k,46k)
pass the check
Issue: AXIA-1441
Change-Id: I48f91119275560ec6d00feb0dedc70d10aa55262
Signed-off-by: Xiaobing Feng <xiaobing.feng@windriver.com>
Signed-off-by: Matt Gumbel <matthew.k.gumbel@intel.com>
@@ -571,6 +571,8 @@ status_t FLACParser::init() | ||
571 | 571 | } |
572 | 572 | // check sample rate |
573 | 573 | switch (getSampleRate()) { |
574 | + case 100: | |
575 | + case 1000: | |
574 | 576 | case 8000: |
575 | 577 | case 11025: |
576 | 578 | case 12000: |
@@ -578,7 +580,9 @@ status_t FLACParser::init() | ||
578 | 580 | case 22050: |
579 | 581 | case 24000: |
580 | 582 | case 32000: |
583 | + case 42000: | |
581 | 584 | case 44100: |
585 | + case 46000: | |
582 | 586 | case 48000: |
583 | 587 | case 88200: |
584 | 588 | case 96000: |