vlc_aout_intf.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * vlc_aout_intf.h : audio output control
00003  *****************************************************************************
00004  * Copyright (C) 2002-2011 VLC authors and VideoLAN
00005  *
00006  * This program is free software; you can redistribute it and/or modify it
00007  * under the terms of the GNU Lesser General Public License as published by
00008  * the Free Software Foundation; either version 2.1 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00014  * GNU Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public License
00017  * along with this program; if not, write to the Free Software Foundation,
00018  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
00019  *****************************************************************************/
00020 
00021 #ifndef VLC_AOUT_INTF_H
00022 #define VLC_AOUT_INTF_H 1
00023 
00024 /**
00025  * \file
00026  * This file defines functions, structures and macros for audio output object
00027  */
00028 
00029 #define AOUT_VOLUME_DEFAULT             256
00030 #define AOUT_VOLUME_MAX                 512
00031 
00032 VLC_API audio_volume_t aout_VolumeGet( vlc_object_t * );
00033 #define aout_VolumeGet(a) aout_VolumeGet(VLC_OBJECT(a))
00034 VLC_API int aout_VolumeSet( vlc_object_t *, audio_volume_t );
00035 #define aout_VolumeSet(a, b) aout_VolumeSet(VLC_OBJECT(a), b)
00036 VLC_API int aout_VolumeUp( vlc_object_t *, int, audio_volume_t * );
00037 #define aout_VolumeUp(a, b, c) aout_VolumeUp(VLC_OBJECT(a), b, c)
00038 #define aout_VolumeDown(a, b, c) aout_VolumeUp(a, -(b), c)
00039 VLC_API int aout_ToggleMute( vlc_object_t *, audio_volume_t * );
00040 #define aout_ToggleMute(a, b) aout_ToggleMute(VLC_OBJECT(a), b)
00041 VLC_API int aout_SetMute( vlc_object_t *, audio_volume_t *, bool );
00042 VLC_API bool aout_IsMuted( vlc_object_t * );
00043 
00044 VLC_API void aout_EnableFilter( vlc_object_t *, const char *, bool );
00045 #define aout_EnableFilter( o, n, b ) \
00046         aout_EnableFilter( VLC_OBJECT(o), n, b )
00047 
00048 #endif /* _VLC_AOUT_H */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines