TuyaOS
成员变量
TKL_AUDIO_FRAME_T结构体 参考

audio frame 更多...

#include <tkl_cellular_player.h>

成员变量

UINT_T buf_size
 
UINT_T bytes
 
TKL_AUDIO_CHANNEL_E channel
 
UINT8_T channelCount
 
TKL_MEDIA_CODEC_TYPE_E codectype
 
PUINT_T data
 
TKL_AUDIO_DATABITS_E datebits
 
UINT8_T flags
 
CHAR_T * pbuf
 
UINT64_T pts
 
TKL_AUDIO_SAMPLE_E sample
 
TKL_AUDIO_SAMPLE_FORMAT_T sampleFormat
 
UINT_T sampleRate
 
UINT_T sampleStamp
 
UINT_T seq
 
UINT64_T timestamp
 
TKL_MEDIA_FRAME_TYPE_E type
 
UINT_T used_size
 

详细描述

audio frame

When it is used for format only, only sampleFormat, channelCount and sampleRate are used.

结构体成员变量说明

◆ bytes

UINT_T TKL_AUDIO_FRAME_T::bytes

byte count (not sample count)

◆ channelCount

UINT8_T TKL_AUDIO_FRAME_T::channelCount

channel count, only 1 and 2 are valid now

◆ data

PUINT_T TKL_AUDIO_FRAME_T::data

sample pointer, it can be casted to the data type according to sampleFormat. For 2 channels, the format is LRLR...

◆ sampleFormat

TKL_AUDIO_SAMPLE_FORMAT_T TKL_AUDIO_FRAME_T::sampleFormat

sample format

◆ sampleRate

UINT_T TKL_AUDIO_FRAME_T::sampleRate

sample rate in Hz

◆ sampleStamp

UINT_T TKL_AUDIO_FRAME_T::sampleStamp

time stamp of the beginning of data, in unit of sample count. time_stamp = sample_stamp/sample_rate


该结构体的文档由以下文件生成: