vlc_aout_volume.h 1.73 KB
Newer Older
1
/*****************************************************************************
2
 * vlc_aout_volume.h: audio volume module
3
 *****************************************************************************
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
4
 * Copyright (C) 2002-2009 VLC authors and VideoLAN
5 6 7 8 9
 * $Id$
 *
 * Authors: Christophe Massiot <massiot@via.ecp.fr>
 *          Laurent Aimar <fenrir _AT_ videolan _DOT_ org>
 *
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
10 11 12
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation; either version 2.1 of the License, or
13 14 15 16
 * (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
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
17 18
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
19
 *
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
20 21 22
 * You should have received a copy of the GNU Lesser 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.
23 24 25 26 27
 *****************************************************************************/

#ifndef VLC_AOUT_MIXER_H
#define VLC_AOUT_MIXER_H 1

28 29 30 31
#ifdef __cplusplus
extern "C" {
#endif

32
/**
33 34 35
 * \defgroup audio_volume Audio output volume
 * \ingroup audio_output
 * @{
36 37 38 39
 * \file
 * This file defines functions, structures and macros for audio output mixer object
 */

40
typedef struct audio_volume audio_volume_t;
41

42 43
/**
 * Audio volume
44
 */
45
struct audio_volume
46
{
47
    struct vlc_common_members obj;
48

49
    vlc_fourcc_t format; /**< Audio samples format */
50
    void (*amplify)(audio_volume_t *, block_t *, float); /**< Amplifier */
51 52
};

53 54
/** @} */

55 56 57 58 59
#ifdef __cplusplus
}
#endif

#endif