You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[doxygen][audio] Fix doxygen comments for audio component
Added comments for data structure and rt_audio_ops in dev_audio.h. Enriched comments for macro group. Moved and renamed folder audio.
Signed-off-by: 1078249029 <[email protected]>
rt_err_t (*start)(structrt_audio_device*audio, intstream); /**< Turn on the audio device */
207
+
rt_err_t (*stop)(structrt_audio_device*audio, intstream); /**< Turn off the audio device */
208
+
rt_ssize_t (*transmit)(structrt_audio_device*audio, constvoid*writeBuf, void*readBuf, rt_size_tsize); /**< Transmit data between application and device */
209
+
void (*buffer_info)(structrt_audio_device*audio, structrt_audio_buf_info*info); /**< Get page size of codec or private buffer's info */
203
210
};
204
211
205
212
/**
@@ -211,43 +218,45 @@ struct rt_audio_ops
211
218
*/
212
219
structrt_audio_configure
213
220
{
214
-
rt_uint32_tsamplerate;
215
-
rt_uint16_tchannels;
216
-
rt_uint16_tsamplebits;
221
+
rt_uint32_tsamplerate;/**< Audio samplerate information */
222
+
rt_uint16_tchannels;/**< Audio channels information */
223
+
rt_uint16_tsamplebits;/**< Audio samplebits information */
217
224
};
218
225
219
226
/**
220
227
* @brief Audio capabilities
221
228
*/
222
229
structrt_audio_caps
223
230
{
224
-
intmain_type;
225
-
intsub_type;
231
+
intmain_type;/**< Audio main type, one value of @ref audio_type */
232
+
intsub_type;/**< Audio sub type, one value of @ref audio_dsp @ref audio_mixer */
226
233
227
234
union
228
235
{
229
-
rt_uint32_tmask;
230
-
intvalue;
231
-
structrt_audio_configureconfig;
232
-
} udata;
236
+
rt_uint32_tmask;/**< Capabilities mask */
237
+
intvalue;/**< Capabilities value */
238
+
structrt_audio_configureconfig;/**< Audio samplebits information */
239
+
} udata;/**< User data */
233
240
};
234
241
235
242
/**
236
243
* @brief Audio replay
237
244
*/
238
245
structrt_audio_replay
239
246
{
240
-
structrt_mempool*mp;
241
-
structrt_data_queuequeue;
242
-
structrt_mutexlock;
243
-
structrt_completioncmp;
244
-
structrt_audio_buf_infobuf_info;
245
-
rt_uint8_t*write_data;
246
-
rt_uint16_twrite_index;
247
-
rt_uint16_tread_index;
248
-
rt_uint32_tpos;
249
-
rt_uint8_tevent;
250
-
rt_bool_tactivated;
247
+
structrt_mempool*mp; /**< Memory pool for audio replay */
248
+
structrt_data_queuequeue; /**< Replay data queue */
249
+
structrt_mutexlock; /**< Replay mutex lock*/
250
+
structrt_completioncmp; /**< Replay completion, it will be */
251
+
structrt_audio_buf_infobuf_info; /**< Replay buffer information */
252
+
rt_uint8_t*write_data; /**< Pointer to the data to be written into data queue */
253
+
rt_uint16_twrite_index; /**< Index of pointer write_data.It records how much data
254
+
has been written in currently being played block */
255
+
rt_uint16_tread_index; /**< Index of replaying data for audio device, it indicates index of replay
256
+
in the blocks which is currently being played */
257
+
rt_uint32_tpos; /**< Global position of audio replay */
0 commit comments