物联网操作系统AliOS Things 3.3
uvoice_types.h
浏览该文件的文档.
1
/*
2
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
3
*/
4
5
#ifndef __UVOICE_TYPES_H__
6
#define __UVOICE_TYPES_H__
7
22
typedef
enum
{
23
MEDIA_FMT_UNKNOWN
= 0,
24
MEDIA_FMT_PCM
,
25
MEDIA_FMT_WAV
,
26
MEDIA_FMT_MP3
,
27
MEDIA_FMT_AAC
,
28
MEDIA_FMT_M4A
,
29
MEDIA_FMT_OGG
,
30
MEDIA_FMT_OPS
,
31
MEDIA_FMT_SPX
,
32
MEDIA_FMT_WMA
,
33
MEDIA_FMT_AMR
,
34
MEDIA_FMT_AMRWB
,
35
MEDIA_FMT_FLAC
,
36
MEDIA_FMT_COUNT
,
37
}
media_format_t
;
38
39
typedef
struct
{
40
char
name[32];
41
char
author[32];
42
char
album[32];
43
char
year[8];
44
int
valid
;
45
unsigned
char
type
;
46
int32_t
bitrate
;
47
int32_t
media_size
;
48
int32_t
duration
;
49
}
media_info_t
;
50
51
typedef
struct
{
52
int
place
;
/* 0: none, 1: file, 2: mem */
53
int
mem_size
;
/* cache memory size in KB */
54
char
file_path[128];
/* cache file full path */
55
}
cache_config_t
;
56
57
62
#endif
/* __UVOICE_TYPES_H__ */
media_format_t
media_format_t
Definition:
uvoice_types.h:22
MEDIA_FMT_AAC
@ MEDIA_FMT_AAC
Definition:
uvoice_types.h:27
MEDIA_FMT_AMR
@ MEDIA_FMT_AMR
Definition:
uvoice_types.h:33
MEDIA_FMT_WMA
@ MEDIA_FMT_WMA
Definition:
uvoice_types.h:32
MEDIA_FMT_M4A
@ MEDIA_FMT_M4A
Definition:
uvoice_types.h:28
MEDIA_FMT_PCM
@ MEDIA_FMT_PCM
Definition:
uvoice_types.h:24
MEDIA_FMT_UNKNOWN
@ MEDIA_FMT_UNKNOWN
Definition:
uvoice_types.h:23
MEDIA_FMT_OPS
@ MEDIA_FMT_OPS
Definition:
uvoice_types.h:30
MEDIA_FMT_AMRWB
@ MEDIA_FMT_AMRWB
Definition:
uvoice_types.h:34
MEDIA_FMT_SPX
@ MEDIA_FMT_SPX
Definition:
uvoice_types.h:31
MEDIA_FMT_OGG
@ MEDIA_FMT_OGG
Definition:
uvoice_types.h:29
MEDIA_FMT_FLAC
@ MEDIA_FMT_FLAC
Definition:
uvoice_types.h:35
MEDIA_FMT_WAV
@ MEDIA_FMT_WAV
Definition:
uvoice_types.h:25
MEDIA_FMT_MP3
@ MEDIA_FMT_MP3
Definition:
uvoice_types.h:26
MEDIA_FMT_COUNT
@ MEDIA_FMT_COUNT
Definition:
uvoice_types.h:36
cache_config_t
Definition:
uvoice_types.h:51
cache_config_t::mem_size
int mem_size
Definition:
uvoice_types.h:53
cache_config_t::place
int place
Definition:
uvoice_types.h:52
media_info_t
Definition:
uvoice_types.h:39
media_info_t::bitrate
int32_t bitrate
Definition:
uvoice_types.h:46
media_info_t::duration
int32_t duration
Definition:
uvoice_types.h:48
media_info_t::type
unsigned char type
Definition:
uvoice_types.h:45
media_info_t::valid
int valid
Definition:
uvoice_types.h:44
media_info_t::media_size
int32_t media_size
Definition:
uvoice_types.h:47
components
uvoice
include
uvoice_types.h
生成于 2021年 四月 9日 星期五 13:02:34 , 为 物联网操作系统AliOS Things 3.3使用
1.9.1