tarina

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

volume_mapping.h (608B)


      1 #ifndef VOLUME_MAPPING_H_INCLUDED
      2 #define VOLUME_MAPPING_H_INCLUDED
      3 
      4 #include <alsa/asoundlib.h>
      5 
      6 double get_normalized_playback_volume(snd_mixer_elem_t *elem,
      7 				      snd_mixer_selem_channel_id_t channel);
      8 double get_normalized_capture_volume(snd_mixer_elem_t *elem,
      9 				     snd_mixer_selem_channel_id_t channel);
     10 int set_normalized_playback_volume(snd_mixer_elem_t *elem,
     11 				   snd_mixer_selem_channel_id_t channel,
     12 				   double volume,
     13 				   int dir);
     14 int set_normalized_capture_volume(snd_mixer_elem_t *elem,
     15 				  snd_mixer_selem_channel_id_t channel,
     16 				  double volume,
     17 				  int dir);
     18 
     19 #endif