6 #ifndef __UVOICE_PLAYER_H__ 7 #define __UVOICE_PLAYER_H__ 36 int (*complete)(void);
37 int (*stop_async)(void);
38 int (*pause_async)(void);
39 int (*resume_async)(void);
40 int (*set_source)(
char *source);
41 int (*clr_source)(void);
43 int (*put_stream)(
const uint8_t *buffer,
int nbytes);
44 int (*clr_stream)(
int immediate);
45 int (*set_pcminfo)(
int rate,
int channels,
int bits,
int frames);
46 int (*get_duration)(
int *duration);
47 int (*get_position)(
int *position);
48 int (*set_volume)(
int volume);
49 int (*get_volume)(
int *volume);
50 int (*volume_range)(
int *max,
int *min);
51 int (*seek)(
int second);
52 int (*playback)(
char *source);
53 int (*wait_complete)(void);
54 int (*download)(
char *name);
55 int (*download_abort)(void);
57 int (*set_fade)(
int out_period,
int in_period);
59 int (*set_standby)(
int msec);
60 int (*eq_enable)(
int enable);
61 int (*state_dump)(void);
62 int (*pcmdump_enable)(
int enable);
64 int (*get_delay)(
int *delay_ms);
66 int (*get_cacheinfo)(
int *cache_size);
int uvoice_player_release(uvoice_player_t *mplayer)
uvoice_player_t * uvoice_player_create(void)
@ PLAYER_STAT_SOURCE_INVALID
@ PLAYER_STAT_FORMAT_UNSUPPORT