paraslash Paraslash Audio Streaming
About   News   Download   Documentation   Development

Data Fields
mixer Struct Reference

Operations provided by each mixer plugin. More...

#include <mix.h>

Data Fields

const char *const name
 Used to identify the mixer. More...
 
int(* open )(const char *dev, struct mixer_handle **handle)
 Return a handle that can be passed to other methods. More...
 
char *(* get_channels )(struct mixer_handle *handle)
 Returns a string of all valid mixer channels. More...
 
int(* set_channel )(struct mixer_handle *handle, const char *mixer_channel)
 Select the channel for subsequent get/set operations. More...
 
int(* get )(struct mixer_handle *handle)
 Return the (normalized) current value of the selected channel. More...
 
int(* set )(struct mixer_handle *handle, int val)
 Change the value of the selected channel. More...
 
void(* close )(struct mixer_handle **handle)
 Free all resources associated with the given handle. More...
 

Detailed Description

Operations provided by each mixer plugin.

Each mixer plugin must define a non-static instance of this structure, with all pointers initialized to non-NULL values. No other symbols need to be exported.

Field Documentation

◆ name

const char* const name

Used to identify the mixer.

◆ open

int(* open) (const char *dev, struct mixer_handle **handle)

Return a handle that can be passed to other methods.

◆ get_channels

char*(* get_channels) (struct mixer_handle *handle)

Returns a string of all valid mixer channels.

◆ set_channel

int(* set_channel) (struct mixer_handle *handle, const char *mixer_channel)

Select the channel for subsequent get/set operations.

◆ get

int(* get) (struct mixer_handle *handle)

Return the (normalized) current value of the selected channel.

◆ set

int(* set) (struct mixer_handle *handle, int val)

Change the value of the selected channel.

◆ close

void(* close) (struct mixer_handle **handle)

Free all resources associated with the given handle.


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