fixed the issue of basic scheduling at no time check mode
[adk-bluetooth-test.git] / examples / Source / msi.h
blobc605e756d0edab080624fdca490de77fd84fea19
1 #ifndef _MSI_
2 #define _MSI_
4 #define MSI_DEBUG
6 /*
7 * mqx sound interface
8 */
11 * default set is the sample rate 44100, 16 bits, 2 channel
12 * umute
14 int32_t msi_snd_init(void);
17 * write samples to device
18 * must have correct set before write
20 int32_t msi_snd_write(uint8_t * pcmStream, uint32_t pcmCnt);
23 * collect resources of sound device
25 int32_t msi_snd_deinit(void);
28 * set pcm sound format: sample rate, bit width, channel number
30 int32_t msi_snd_set_format(uint32_t sampleRate, uint8_t bitWidth, uint8_t chNum);
33 * mute sound device
35 int32_t msi_snd_mute(void);
37 * umute device
39 int32_t msi_snd_umute(void);
42 * turn up sound volume
44 int32_t msi_snd_vol_up(void);
47 * turn down sound volume
49 int32_t msi_snd_vol_down(void);
51 * flush the pcm stream out
54 int32_t msi_snd_flush(void);
57 * get the buffer occupancy rate
58 * return 0~100 represent 0%~ 100%
61 int16_t msi_snd_get_occ(void);
62 #endif