mirror of
https://gitee.com/openharmony/third_party_alsa-lib
synced 2024-11-23 15:39:58 +00:00
46 lines
2.4 KiB
C
46 lines
2.4 KiB
C
/****************************************************************************
|
|
* *
|
|
* mixer.h *
|
|
* Mixer Interface *
|
|
* *
|
|
****************************************************************************/
|
|
|
|
typedef struct snd_mixer_callbacks {
|
|
void *private_data; /* should be used by application */
|
|
void (*channel_was_changed) (void *private_data, int channel);
|
|
void (*output_channel_was_changed) (void *private_data, int channel);
|
|
void (*input_channel_was_changed) (void *private_data, int channel);
|
|
void (*switch_was_changed) (void *private_data, int switchn);
|
|
void *reserved[15]; /* reserved for future use - must be NULL!!! */
|
|
} snd_mixer_callbacks_t;
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
int snd_mixer_open(void **handle, int card, int device);
|
|
int snd_mixer_close(void *handle);
|
|
int snd_mixer_file_descriptor(void *handle);
|
|
int snd_mixer_channels(void *handle);
|
|
int snd_mixer_info(void *handle, snd_mixer_info_t * info);
|
|
int snd_mixer_exact_mode(void *handle, int enable);
|
|
int snd_mixer_channel(void *handle, const char *channel_id);
|
|
int snd_mixer_channel_info(void *handle, int channel, snd_mixer_channel_info_t * info);
|
|
int snd_mixer_channel_output_info(void *handle, int channel, snd_mixer_channel_direction_info_t * info);
|
|
int snd_mixer_channel_input_info(void *handle, int channel, snd_mixer_channel_direction_info_t * info);
|
|
int snd_mixer_channel_read(void *handle, int channel, snd_mixer_channel_t * data);
|
|
int snd_mixer_channel_write(void *handle, int channel, snd_mixer_channel_t * data);
|
|
int snd_mixer_channel_output_read(void *handle, int channel, snd_mixer_channel_direction_t * data);
|
|
int snd_mixer_channel_output_write(void *handle, int channel, snd_mixer_channel_direction_t * data);
|
|
int snd_mixer_channel_input_read(void *handle, int channel, snd_mixer_channel_direction_t * data);
|
|
int snd_mixer_channel_input_write(void *handle, int channel, snd_mixer_channel_direction_t * data);
|
|
int snd_mixer_switch_list(void *handle, snd_switch_list_t * list);
|
|
int snd_mixer_switch_read(void *handle, snd_switch_t * sw);
|
|
int snd_mixer_switch_write(void *handle, snd_switch_t * sw);
|
|
int snd_mixer_read(void *handle, snd_mixer_callbacks_t * callbacks);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|