Add F32 enums when calling msToBytes 50/317350/2 accepted/tizen_unified accepted/tizen_unified_x accepted/tizen_unified_x_asan tizen accepted/tizen/unified/20241231.180257 accepted/tizen/unified/x/20250101.130333 accepted/tizen/unified/x/asan/20250113.002201
authorJaechul Lee <jcsing.lee@samsung.com>
Tue, 31 Dec 2024 04:03:17 +0000 (13:03 +0900)
committerJaechul Lee <jcsing.lee@samsung.com>
Tue, 31 Dec 2024 04:15:42 +0000 (13:15 +0900)
[Version] 0.6.1
[Issue Type] update

Change-Id: Ie5291990817b622c931b265ded86d6c2b1089d1e
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
packaging/capi-media-audio-io.spec
src/audio_io_internal.cpp
src/cpp/CAudioInfo.cpp

index 560bd18cd6be443994e9f2d53b047719269b506e..3e9320b593f283727188639b029c956e8ab92e00 100644 (file)
@@ -1,6 +1,6 @@
 Name:           capi-media-audio-io
 Summary:        An Audio Input & Audio Output library in Tizen Native API
-Version:        0.6.0
+Version:        0.6.1
 Release:        0
 Group:          Multimedia/API
 License:        Apache-2.0
index 5b4ecd9150cb3e0c9e8352baa72ff414576e7865..8a5ec9a944f971b098d3a912f911357f7f9bc809 100644 (file)
@@ -101,6 +101,9 @@ static int _convert_format(audio_sample_type_e sample_type, audio_effect_format_
                case AUDIO_SAMPLE_TYPE_S32_LE:
                        *format = AUDIO_EFFECT_FORMAT_S32;
                        return 0;
+               case AUDIO_SAMPLE_TYPE_FLOAT32_LE:
+                       *format = AUDIO_EFFECT_FORMAT_FLOAT;
+                       return 0;
                default:
                        break;
        }
index 099451bbf3f4313d2183cc845823f19d84d0a4d0..6001b312cb45b0c156768c2d8d05e24c56cbbd5f 100644 (file)
@@ -92,6 +92,7 @@ int CAudioInfo::getSampleSize() const noexcept {
         break;
     case ESampleType::SAMPLE_TYPE_S24_32_LE:
     case ESampleType::SAMPLE_TYPE_S32_LE:
+    case ESampleType::SAMPLE_TYPE_F32_LE:
         bytes_in_sample = 4;
         break;
     default: