tarina

git clone https://git.tarina.org/tarina
Log | Files | Refs | README | LICENSE

mixer_widget.h (820B)


      1 #ifndef MIXER_WIDGET_H_INCLUDED
      2 #define MIXER_WIDGET_H_INCLUDED
      3 
      4 #include CURSESINC
      5 #include <alsa/asoundlib.h>
      6 #include "widget.h"
      7 
      8 enum view_mode {
      9 	VIEW_MODE_PLAYBACK,
     10 	VIEW_MODE_CAPTURE,
     11 	VIEW_MODE_ALL,
     12 	VIEW_MODE_COUNT,
     13 };
     14 
     15 extern snd_mixer_t *mixer;
     16 extern char *mixer_device_name;
     17 extern bool unplugged;
     18 
     19 extern struct widget mixer_widget;
     20 
     21 extern enum view_mode view_mode;
     22 
     23 extern int focus_control_index;
     24 extern snd_mixer_selem_id_t *current_selem_id;
     25 extern unsigned int current_control_flags;
     26 
     27 extern bool control_values_changed;
     28 extern bool controls_changed;
     29 
     30 void create_mixer_object(struct snd_mixer_selem_regopt *selem_regopt);
     31 void create_mixer_widget(void);
     32 void mixer_shutdown(void);
     33 void close_mixer_device(void);
     34 bool select_card_by_name(const char *device_name);
     35 void refocus_control(void);
     36 
     37 #endif