2004-02-24 00:41:20 +01:00
|
|
|
/* the Music Player Daemon (MPD)
|
2007-04-05 05:22:33 +02:00
|
|
|
* Copyright (C) 2003-2007 by Warren Dukes (warren.dukes@gmail.com)
|
2004-02-24 00:41:20 +01:00
|
|
|
* This project's homepage is: http://www.musicpd.org
|
|
|
|
*
|
|
|
|
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef VOLUME_H
|
|
|
|
#define VOLUME_H
|
|
|
|
|
2008-01-03 08:29:49 +01:00
|
|
|
#include "os_compat.h"
|
2004-02-24 00:41:20 +01:00
|
|
|
|
|
|
|
#define VOLUME_MIXER_OSS "oss"
|
|
|
|
#define VOLUME_MIXER_ALSA "alsa"
|
|
|
|
#define VOLUME_MIXER_SOFTWARE "software"
|
|
|
|
|
2006-08-20 02:50:44 +02:00
|
|
|
void initVolume(void);
|
2004-02-24 00:41:20 +01:00
|
|
|
|
2006-08-20 02:50:44 +02:00
|
|
|
void openVolumeDevice(void);
|
2004-02-24 00:41:20 +01:00
|
|
|
|
2006-08-20 02:50:44 +02:00
|
|
|
void finishVolume(void);
|
2004-02-24 00:41:20 +01:00
|
|
|
|
2006-08-20 02:50:44 +02:00
|
|
|
int getVolumeLevel(void);
|
2004-02-24 00:41:20 +01:00
|
|
|
|
2008-09-07 13:50:16 +02:00
|
|
|
int changeVolumeLevel(int change, int rel);
|
2004-02-24 00:41:20 +01:00
|
|
|
|
2006-07-31 01:32:54 +02:00
|
|
|
void read_sw_volume_state(FILE *fp);
|
|
|
|
|
|
|
|
void save_sw_volume_state(FILE *fp);
|
|
|
|
|
2004-02-24 00:41:20 +01:00
|
|
|
#endif
|