summaryrefslogtreecommitdiffstats
path: root/arm-wt-22k
diff options
context:
space:
mode:
authorAmit Shekhar <ashekhar@codeaurora.org>2013-03-20 14:51:24 -0700
committerLinux Build Service Account <lnxbuild@localhost>2014-11-04 08:54:00 -0700
commitb254558a04b52e8d7d6d81e8940a754400f197e2 (patch)
tree8ceab021cc9cad7b04d232aeb60d6706fc5d9ced /arm-wt-22k
parentc0723d864b10fbd6c5cbbfa65e886c5e9eb3aafd (diff)
downloadandroid_external_sonivox-b254558a04b52e8d7d6d81e8940a754400f197e2.tar.gz
android_external_sonivox-b254558a04b52e8d7d6d81e8940a754400f197e2.tar.bz2
android_external_sonivox-b254558a04b52e8d7d6d81e8940a754400f197e2.zip
audio: Support for mxmf file playback
-mxmf files couldn't be played. -Added a condition check, in DLSParser(), to warn user if artCount is 0 and to use default articulations. CRs-Fixed: 465437 Change-Id: I42b1634c65e3779ee7924913cc17020bde9cc38d
Diffstat (limited to 'arm-wt-22k')
-rw-r--r--arm-wt-22k/lib_src/eas_mdls.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/arm-wt-22k/lib_src/eas_mdls.c b/arm-wt-22k/lib_src/eas_mdls.c
index e8dc463..1ca359e 100644
--- a/arm-wt-22k/lib_src/eas_mdls.c
+++ b/arm-wt-22k/lib_src/eas_mdls.c
@@ -595,8 +595,14 @@ EAS_RESULT DLSParser (EAS_HW_DATA_HANDLE hwInstData, EAS_FILE_HANDLE fileHandle,
return EAS_ERROR_FILE_FORMAT;
}
- /* limit check */
- if ((dls.artCount == 0) || (dls.artCount > DLS_MAX_ART_COUNT))
+ /* limit check - warn user if artCount is 0 and use default articulations */
+ if ( dls.artCount == 0 )
+ {
+ { /* dpp: EAS_ReportEx(_EAS_SEVERITY_WARNING, "DLS file contains 0 #articulations, using default.\n"); */ }
+ }
+
+ /* limit check */
+ if ( dls.artCount > DLS_MAX_ART_COUNT )
{
{ /* dpp: EAS_ReportEx(_EAS_SEVERITY_ERROR, "DLS file contains invalid #articulations [%u]\n", dls.regionCount); */ }
return EAS_ERROR_FILE_FORMAT;