oveRTOS C API
Embedded RTOS framework — build system, configuration, and portable C API
Loading...
Searching...
No Matches
Data Fields
ove_audio_device_cfg Struct Reference

Configuration descriptor for a hardware audio device node. More...

#include <audio_device.h>

Collaboration diagram for ove_audio_device_cfg:
Collaboration graph
[legend]

Data Fields

enum ove_audio_transport transport
 Hardware transport selection.
 
struct ove_audio_fmt fmt
 Desired audio stream format.
 
unsigned int num_buffers
 DMA buffer count; 0 = backend default.
 
unsigned int thread_priority
 Driver thread priority; 0 = backend default.
 
unsigned int thread_stack_size
 Driver thread stack size in bytes; 0 = backend default.
 
union { 
 
   struct { 
 
      unsigned int   input_device 
 Input device selector (e.g. line-in, DMIC index).
 
      unsigned int   slot_mask 
 TDM slot bitmask; 0 = all slots.
 
   }   i2s 
 Parameters specific to I2S / TDM transport.
 
   struct { 
 
      unsigned int   decimation 
 PDM decimation factor.
 
      unsigned int   clock_freq 
 PDM clock frequency in Hz.
 
   }   pdm 
 Parameters specific to PDM microphone transport.
 
   struct { 
 
      const char *   device_name 
 SDL2 audio device name; NULL = system default.
 
   }   sdl2 
 Parameters specific to SDL2 audio transport.
 
};  
 

Detailed Description

Configuration descriptor for a hardware audio device node.

Passed to ove_audio_device_source() or ove_audio_device_sink() to describe the transport, stream format, and transport-specific parameters. Fields set to zero select the backend default.


The documentation for this struct was generated from the following file: