add F32LE format

Signed-off-by: lin-jianwu <linjianwu@huawei.com>
Change-Id: I4b7a9c73767dc939af2a1f0d64bd2a761f63e823
This commit is contained in:
lin-jianwu 2022-04-28 10:40:22 +08:00
parent 06ba7986d2
commit 1c5de11276
3 changed files with 5 additions and 2 deletions

View File

@ -198,6 +198,7 @@ enum AudioSampleFormat {
SAMPLE_S16LE = 16,
SAMPLE_S24LE = 24,
SAMPLE_S32LE = 32,
SAMPLE_F32LE = 32, // used only for audio codec
INVALID_WIDTH = -1
};

View File

@ -37,7 +37,8 @@ public:
SAMPLE_FORMAT_U8 = 0,
SAMPLE_FORMAT_S16LE = 1,
SAMPLE_FORMAT_S24LE = 2,
SAMPLE_FORMAT_S32LE = 3
SAMPLE_FORMAT_S32LE = 3,
SAMPLE_FORMAT_F32LE = 4 // used only for audio codec
};
static napi_value Init(napi_env env, napi_value exports);

View File

@ -44,7 +44,8 @@ public:
SAMPLE_FORMAT_U8 = 0,
SAMPLE_FORMAT_S16LE = 1,
SAMPLE_FORMAT_S24LE = 2,
SAMPLE_FORMAT_S32LE = 3
SAMPLE_FORMAT_S32LE = 3,
SAMPLE_FORMAT_F32LE = 4 // used only for audio codec
};
static napi_value Init(napi_env env, napi_value exports);