mirror of
https://gitee.com/openharmony/multimedia_audio_standard
synced 2024-12-04 19:17:11 +00:00
add F32LE format
Signed-off-by: lin-jianwu <linjianwu@huawei.com> Change-Id: I4b7a9c73767dc939af2a1f0d64bd2a761f63e823
This commit is contained in:
parent
06ba7986d2
commit
1c5de11276
@ -198,6 +198,7 @@ enum AudioSampleFormat {
|
|||||||
SAMPLE_S16LE = 16,
|
SAMPLE_S16LE = 16,
|
||||||
SAMPLE_S24LE = 24,
|
SAMPLE_S24LE = 24,
|
||||||
SAMPLE_S32LE = 32,
|
SAMPLE_S32LE = 32,
|
||||||
|
SAMPLE_F32LE = 32, // used only for audio codec
|
||||||
INVALID_WIDTH = -1
|
INVALID_WIDTH = -1
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -37,7 +37,8 @@ public:
|
|||||||
SAMPLE_FORMAT_U8 = 0,
|
SAMPLE_FORMAT_U8 = 0,
|
||||||
SAMPLE_FORMAT_S16LE = 1,
|
SAMPLE_FORMAT_S16LE = 1,
|
||||||
SAMPLE_FORMAT_S24LE = 2,
|
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);
|
static napi_value Init(napi_env env, napi_value exports);
|
||||||
|
@ -44,7 +44,8 @@ public:
|
|||||||
SAMPLE_FORMAT_U8 = 0,
|
SAMPLE_FORMAT_U8 = 0,
|
||||||
SAMPLE_FORMAT_S16LE = 1,
|
SAMPLE_FORMAT_S16LE = 1,
|
||||||
SAMPLE_FORMAT_S24LE = 2,
|
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);
|
static napi_value Init(napi_env env, napi_value exports);
|
||||||
|
Loading…
Reference in New Issue
Block a user