Andy's CarPlayer

/***************************************************************************
                          mixer.h  -  description
                             -------------------
    begin                : Mon Jun 14 2004
    copyright            : (C) 2004 by Andy Clews
    email                : andy  clews  blueyonder  co  uk
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   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.                                   *
 *                                                                         *
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *                      Global Defines                                     *
 *                                                                         *
 ***************************************************************************/
 
 #define MAX(a,b) (((a)>(b))?(a):(b))
#define MIN(a,b) (((a)<(b))?(a):(b))

/***************************************************************************
 *                                                                         *
 *                       Procedure Defines                                 *
 *                                                                         *
 ***************************************************************************/

int find_mixer_dev (char *chan);
int mixer_get (char *chan, int *llevel, int *rlevel);
int mixer_set (char *chan, int llevel, int rlevel);
int mixer_change_volume (char *chan, int step);
int mixer_set_volume (char *chan, int value, int balance);
int get_volume(char *channel);