mcu_hi3321_watch/application/audio/tools/sample_data.c
2025-05-26 20:15:20 +08:00

56 lines
1.3 KiB
C

/*
* Copyright (c) CompanyNameMagicTag 2023-2023. All rights reserved.
* Description: data
* Author: audio
* Create: 2023-02-06
*/
#include "sample_audio_api.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif
/* 16k 1ch 16bit -4dBFS 5ms */
static const td_u16 g_vector_16k_1ch_16bit[] = {
0x0001, 0x1ee8, 0x391c, 0x4a9d,
0x50c3, 0x4a9e, 0x391c, 0x1ee8,
0x0001, 0xe118, 0xc6e5, 0xb563,
0xaf3d, 0xb563, 0xc6e4, 0xe119,
0x0000, 0x1ee7, 0x391b, 0x4a9d,
0x50c3, 0x4a9e, 0x391b, 0x1ee8,
0x0000, 0xe118, 0xc6e4, 0xb563,
0xaf3d, 0xb563, 0xc6e4, 0xe117,
0x0000, 0x1ee8, 0x391c, 0x4a9e,
0x50c3, 0x4a9d, 0x391c, 0x1ee8,
0xffff, 0xe119, 0xc6e3, 0xb562,
0xaf3d, 0xb562, 0xc6e4, 0xe118,
0x0000, 0x1ee9, 0x391c, 0x4a9e,
0x50c3, 0x4a9e, 0x391c, 0x1ee7,
0x0001, 0xe118, 0xc6e5, 0xb563,
0xaf3d, 0xb563, 0xc6e4, 0xe118,
0x0000, 0x1ee8, 0x391c, 0x4a9d,
0x50c3, 0x4a9d, 0x391b, 0x1ee8,
0x0000, 0xe118, 0xc6e5, 0xb562,
0xaf3d, 0xb562, 0xc6e5, 0xe117,
};
td_u32 sample_get_vector_size(td_void)
{
const size_t verctor_size = sizeof(g_vector_16k_1ch_16bit) / sizeof(g_vector_16k_1ch_16bit[0]);
return verctor_size;
}
const td_u16 *sample_get_vector_16k_1ch_16bit(td_void)
{
return g_vector_16k_1ch_16bit;
}
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif