summaryrefslogtreecommitdiff
path: root/src/mixer/plugins/volume_mapping.h
blob: f781542cfd73708c8653693b098401f82aa373f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef VOLUME_MAPPING_H_INCLUDED
#define VOLUME_MAPPING_H_INCLUDED

#include <alsa/asoundlib.h>

double get_normalized_playback_volume(snd_mixer_elem_t *elem,
				      snd_mixer_selem_channel_id_t channel);
double get_normalized_capture_volume(snd_mixer_elem_t *elem,
				     snd_mixer_selem_channel_id_t channel);
int set_normalized_playback_volume(snd_mixer_elem_t *elem,
				   double volume,
				   int dir);
int set_normalized_capture_volume(snd_mixer_elem_t *elem,
				  double volume,
				  int dir);

#endif