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 {
38 
39 typedef enum {
48 
49 typedef struct {
50  int used;
52  int pin;
53  int delay_ms;
55 
56 typedef struct {
57  char name[32];
58  char author[32];
59  char album[32];
60  char year[8];
61  int valid;
62  unsigned char type;
63  int32_t bitrate;
64  int32_t media_size;
65  int32_t duration;
66 } media_info_t;
67 
68 typedef struct {
69  int place; /* 0: none, 1: file, 2: mem */
70  int mem_size; /* cache memory size in KB */
71  char file_path[128]; /* cache file full path */
73 
74 
79 #endif /* __UVOICE_TYPES_H__ */
audio_out_device_t
Definition: uvoice_types.h:39
media_format_t
Definition: uvoice_types.h:22
@ AUDIO_OUT_DEVICE_SPEAKER_AND_HEADPHONE
Definition: uvoice_types.h:44
@ AUDIO_OUT_DEVICE_HEADPHONE
Definition: uvoice_types.h:41
@ AUDIO_OUT_DEVICE_RECEIVER
Definition: uvoice_types.h:43
@ AUDIO_OUT_DEVICE_MAX
Definition: uvoice_types.h:46
@ AUDIO_OUT_DEVICE_HEADSET
Definition: uvoice_types.h:42
@ AUDIO_OUT_DEVICE_SPEAKER_AND_HEADSET
Definition: uvoice_types.h:45
@ AUDIO_OUT_DEVICE_SPEAKER
Definition: uvoice_types.h:40
@ MEDIA_FMT_AAC
Definition: uvoice_types.h:27
@ MEDIA_FMT_AMR
Definition: uvoice_types.h:33
@ MEDIA_FMT_WMA
Definition: uvoice_types.h:32
@ MEDIA_FMT_M4A
Definition: uvoice_types.h:28
@ MEDIA_FMT_PCM
Definition: uvoice_types.h:24
@ MEDIA_FMT_UNKNOWN
Definition: uvoice_types.h:23
@ MEDIA_FMT_OPS
Definition: uvoice_types.h:30
@ MEDIA_FMT_AMRWB
Definition: uvoice_types.h:34
@ MEDIA_FMT_SPX
Definition: uvoice_types.h:31
@ MEDIA_FMT_OGG
Definition: uvoice_types.h:29
@ MEDIA_FMT_FLAC
Definition: uvoice_types.h:35
@ MEDIA_FMT_WAV
Definition: uvoice_types.h:25
@ MEDIA_FMT_MP3
Definition: uvoice_types.h:26
@ MEDIA_FMT_COUNT
Definition: uvoice_types.h:36
int32_t bitrate
Definition: uvoice_types.h:63
int32_t duration
Definition: uvoice_types.h:65
unsigned char type
Definition: uvoice_types.h:62
int32_t media_size
Definition: uvoice_types.h:64