2009-05-25 10:26:22 +02:00
|
|
|
#ifndef MIXER_WIDGET_H_INCLUDED
|
|
|
|
#define MIXER_WIDGET_H_INCLUDED
|
|
|
|
|
|
|
|
#include CURSESINC
|
|
|
|
#include <alsa/asoundlib.h>
|
|
|
|
#include "widget.h"
|
|
|
|
|
|
|
|
enum view_mode {
|
|
|
|
VIEW_MODE_PLAYBACK,
|
|
|
|
VIEW_MODE_CAPTURE,
|
|
|
|
VIEW_MODE_ALL,
|
|
|
|
VIEW_MODE_COUNT,
|
|
|
|
};
|
|
|
|
|
2019-09-26 22:27:25 +02:00
|
|
|
enum channel_mask {
|
|
|
|
LEFT = 1,
|
|
|
|
RIGHT = 2,
|
|
|
|
};
|
|
|
|
|
2009-05-25 10:26:22 +02:00
|
|
|
extern snd_mixer_t *mixer;
|
|
|
|
extern char *mixer_device_name;
|
|
|
|
extern bool unplugged;
|
|
|
|
|
|
|
|
extern struct widget mixer_widget;
|
|
|
|
|
|
|
|
extern enum view_mode view_mode;
|
|
|
|
|
|
|
|
extern int focus_control_index;
|
|
|
|
extern snd_mixer_selem_id_t *current_selem_id;
|
|
|
|
extern unsigned int current_control_flags;
|
|
|
|
|
2012-10-19 12:16:33 +02:00
|
|
|
extern bool control_values_changed;
|
2009-05-25 10:26:22 +02:00
|
|
|
extern bool controls_changed;
|
|
|
|
|
2019-09-27 01:25:56 +02:00
|
|
|
extern unsigned int mouse_wheel_step;
|
|
|
|
extern bool mouse_wheel_focuses_control;
|
|
|
|
|
2009-05-25 10:26:22 +02:00
|
|
|
void create_mixer_object(struct snd_mixer_selem_regopt *selem_regopt);
|
|
|
|
void create_mixer_widget(void);
|
|
|
|
void mixer_shutdown(void);
|
|
|
|
void close_mixer_device(void);
|
|
|
|
bool select_card_by_name(const char *device_name);
|
|
|
|
void refocus_control(void);
|
|
|
|
|
|
|
|
#endif
|