Paraslash Audio Streaming | |
About News Download Documentation Development |
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... | |
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.
const char* const name |
Used to identify the mixer.
int(* open) (const char *dev, struct mixer_handle **handle) |
Return a handle that can be passed to other methods.
char*(* get_channels) (struct mixer_handle *handle) |
Returns a string of all valid mixer channels.
int(* set_channel) (struct mixer_handle *handle, const char *mixer_channel) |
Select the channel for subsequent get/set operations.
int(* get) (struct mixer_handle *handle) |
Return the (normalized) current value of the selected channel.
int(* set) (struct mixer_handle *handle, int val) |
Change the value of the selected channel.
void(* close) (struct mixer_handle **handle) |
Free all resources associated with the given handle.