typedef struct aout_mixer_t aout_mixer_t;
typedef struct {
- /* Is the input to be ignored while mixing */
- bool is_invalid;
-
/* */
aout_fifo_t fifo;
- /* Pointer on the first byte of data to mix.
- *
- * It points in the first buffer of fifo
- */
- uint8_t *begin;
-
/* Software multiplier */
float multiplier;
} aout_mixer_input_t;
*/
audio_sample_format_t fmt;
- /* Mixer output buffer allocation method.
- *
- * You can override it in the open function only.
- */
- aout_alloc_t allocation;
-
- /* Multiplier used to raise or lower the volume of the sound in
- * software.
- */
- float multiplier;
-
/* Array of mixer inputs */
aout_mixer_input_t *input;
- /* Mix input into the given buffer (mandatory) */
- void (*mix)(aout_mixer_t *, aout_buffer_t *);
+ /* Mix buffer (mandatory) */
+ void (*mix)(aout_mixer_t *, aout_buffer_t *, float);
/* Private place holder for the aout_mixer_t module (optional)
*