36#ifndef MODULES_INCLUDE_AUDIO_UTILITIES_FRAME_SAMPLES_H
37#define MODULES_INCLUDE_AUDIO_UTILITIES_FRAME_SAMPLES_H
53inline uint32_t getCapSampleNumPerFrame(uint8_t codec_type, uint32_t fs)
55 const uint32_t CapSampleNumPerFrame[] =
72 return (CapSampleNumPerFrame[codec_type] / 2 * 48000 /
79 return ((fs / 50) * (48000 / fs));
85 return CapSampleNumPerFrame[codec_type];
CXD5602 Audio Common Definitions.
#define AS_CODECTYPE_OPUS
Definition: audio_common_defs.h:135
#define AS_CODECTYPE_MP3
Definition: audio_common_defs.h:123
#define AS_CODECTYPE_LPCM
Definition: audio_common_defs.h:143