]> git.sesse.net Git - vlc/blob - include/vlc_aout_intf.h
Win32: Change the order of the links at the installer
[vlc] / include / vlc_aout_intf.h
1 /*****************************************************************************
2  * vlc_aout_intf.h : audio output control
3  *****************************************************************************
4  * Copyright (C) 2002-2011 VLC authors and VideoLAN
5  *
6  * This program is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU Lesser General Public License as published by
8  * the Free Software Foundation; either version 2.1 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with this program; if not, write to the Free Software Foundation,
18  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
19  *****************************************************************************/
20
21 #ifndef VLC_AOUT_INTF_H
22 #define VLC_AOUT_INTF_H 1
23
24 /**
25  * \file
26  * This file defines functions, structures and macros for audio output object
27  */
28
29 #define AOUT_VOLUME_DEFAULT             256
30 #define AOUT_VOLUME_MAX                 512
31
32 VLC_API float aout_VolumeGet( vlc_object_t * );
33 #define aout_VolumeGet(a) aout_VolumeGet(VLC_OBJECT(a))
34 VLC_API int aout_VolumeSet( vlc_object_t *, float );
35 #define aout_VolumeSet(a, b) aout_VolumeSet(VLC_OBJECT(a), b)
36 VLC_API int aout_VolumeUp( vlc_object_t *, int, float * );
37 #define aout_VolumeUp(a, b, c) aout_VolumeUp(VLC_OBJECT(a), b, c)
38 #define aout_VolumeDown(a, b, c) aout_VolumeUp(a, -(b), c)
39 VLC_API int aout_MuteSet( vlc_object_t *, bool );
40 #define aout_MuteSet(a, b) aout_MuteSet(VLC_OBJECT(a), b)
41 VLC_API int aout_MuteGet( vlc_object_t * );
42 #define aout_MuteGet(a) aout_MuteGet(VLC_OBJECT(a))
43
44 static inline int aout_MuteToggle (vlc_object_t *obj)
45 {
46     int val = aout_MuteGet (obj);
47     if (val >= 0)
48         val = aout_MuteSet (obj, !val);
49     return val;
50 }
51 #define aout_MuteToggle(a) aout_MuteToggle(VLC_OBJECT(a))
52
53 VLC_API void aout_EnableFilter( vlc_object_t *, const char *, bool );
54 #define aout_EnableFilter( o, n, b ) \
55         aout_EnableFilter( VLC_OBJECT(o), n, b )
56
57 #endif /* _VLC_AOUT_H */