4379368290
We can handle the keys AudioRaiseVolume, AudioLowerVolume and AudioMute, so we ask the X server to send the key press event for them to us and update the volume appropriately. Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
44 lines
1.4 KiB
C
44 lines
1.4 KiB
C
/* WMix 3.0 -- a mixer using the OSS mixer API.
|
|
* Copyright (C) 2000, 2001
|
|
* Daniel Richard G. <skunk@mit.edu>,
|
|
* timecop <timecop@japan.co.jp>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
*/
|
|
|
|
typedef unsigned int bool;
|
|
|
|
#define false 0
|
|
#define true (!false)
|
|
|
|
#define NULL_CURSOR 1
|
|
#define NORMAL_CURSOR 2
|
|
#define HAND_CURSOR 3
|
|
#define BAR_CURSOR 4
|
|
|
|
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
|
|
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
|
|
#define CLAMP(x, low, high) (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x)))
|
|
|
|
#define MAX_DOUBLE_CLICK_TIME 0.5
|
|
|
|
/*
|
|
* Get the number of element in a static array
|
|
*
|
|
* Do not use on an allocated array, it will not work
|
|
*/
|
|
#define lengthof(arr) \
|
|
((ssize_t)(sizeof( arr ) / sizeof( arr[0] )))
|