struct snd_pcm_extplug_callback

Overview

Callback table of extplug Moreā€¦

#include <pcm_extplug.h>

struct snd_pcm_extplug_callback {
    // fields

    snd_pcm_sframes_t(* transfer)(snd_pcm_extplug_t *ext, const snd_pcm_channel_area_t *dst_areas, snd_pcm_uframes_t dst_offset, const snd_pcm_channel_area_t *src_areas, snd_pcm_uframes_t src_offset, snd_pcm_uframes_t size);
    int(* close)(snd_pcm_extplug_t *ext);
    int(* hw_params)(snd_pcm_extplug_t *ext, snd_pcm_hw_params_t *params);
    int(* hw_free)(snd_pcm_extplug_t *ext);
    void(* dump)(snd_pcm_extplug_t *ext, snd_output_t *out);
    int(* init)(snd_pcm_extplug_t *ext);
    snd_pcm_chmap_query_t**(* query_chmaps)(snd_pcm_extplug_t *ext);
    snd_pcm_chmap_t*(* get_chmap)(snd_pcm_extplug_t *ext);
    int(* set_chmap)(snd_pcm_extplug_t *ext, const snd_pcm_chmap_t *map);
};

Detailed Documentation

Callback table of extplug

Fields

snd_pcm_sframes_t(* transfer)(snd_pcm_extplug_t *ext, const snd_pcm_channel_area_t *dst_areas, snd_pcm_uframes_t dst_offset, const snd_pcm_channel_area_t *src_areas, snd_pcm_uframes_t src_offset, snd_pcm_uframes_t size)

transfer between source and destination; this is a required callback

int(* close)(snd_pcm_extplug_t *ext)

close the PCM; optional

int(* hw_params)(snd_pcm_extplug_t *ext, snd_pcm_hw_params_t *params)

hw_params; optional

int(* hw_free)(snd_pcm_extplug_t *ext)

hw_free; optional

void(* dump)(snd_pcm_extplug_t *ext, snd_output_t *out)

dump; optional

int(* init)(snd_pcm_extplug_t *ext)

init; optional initialization called at prepare or reset

snd_pcm_chmap_query_t**(* query_chmaps)(snd_pcm_extplug_t *ext)

query the channel maps; optional; since v1.0.2

snd_pcm_chmap_t*(* get_chmap)(snd_pcm_extplug_t *ext)

get the channel map; optional; since v1.0.2

int(* set_chmap)(snd_pcm_extplug_t *ext, const snd_pcm_chmap_t *map)

set the channel map; optional; since v1.0.2