mic_status_t

Syntax

#include <cafe/mic.h>

typedef struct {
    unsigned long int   flags;
    unsigned long int   available;
    unsigned long int   read_idx;
} mic_status_t;

#define MIC_STATUS_FLAG_PCM16       (1 << 0)  /* always set, samples are of size s16 */
#define MIC_STATUS_FLAG_OPEN        (1 << 1)  /* set if device is open */
#define MIC_STATUS_FLAG_CONNECTED   (1 << 2)  /* set when DRC and console are connected */

Elements

flags OR'ed field of the flags defined.
available The number of samples of type mic_pcm_sample_t available in the ring buffer.
read_idx The read index into the ring buffer. It must be an array of type mic_pcm_sample_t.

Description

This structure defines the status of the device as described in the table above.

See Also

mic_pcm_sample_t
MICGetStatus

Revision History

2013-05-08 Automated cleanup pass.
2012-06-08 Update to match SDK 2.06.
2011-10-27 Initial version.


CONFIDENTIAL