Support 24bit sample format and up-to 192kHz sample rate
[platform/core/api/audio-io.git] / src / cpp / CAudioInfo.cpp
index 503a1c5..c02f0f4 100644 (file)
@@ -99,6 +99,12 @@ int CAudioInfo::getSampleSize() {
     case ESampleType::SAMPLE_TYPE_S16_LE:
         bytes_in_sample = 2;
         break;
+    case ESampleType::SAMPLE_TYPE_S24_LE:
+        bytes_in_sample = 3;
+        break;
+    case ESampleType::SAMPLE_TYPE_S24_32_LE:
+        bytes_in_sample = 4;
+        break;
     default:
         AUDIO_IO_LOGW("As unrecognized sample type %d, let's assume S16_LE", static_cast<int>(__mSampleType));
         bytes_in_sample = 2;