home *** CD-ROM | disk | FTP | other *** search
/ mail.altrad.com / 2015.02.mail.altrad.com.tar / mail.altrad.com / TEST / vlc-2-0-5-win32.exe / sdk / include / vlc / plugins / vlc_aout_intf.h < prev    next >
C/C++ Source or Header  |  2012-12-12  |  2KB  |  49 lines

  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 audio_volume_t aout_VolumeGet( vlc_object_t * );
  33. #define aout_VolumeGet(a) aout_VolumeGet(VLC_OBJECT(a))
  34. VLC_API int aout_VolumeSet( vlc_object_t *, audio_volume_t );
  35. #define aout_VolumeSet(a, b) aout_VolumeSet(VLC_OBJECT(a), b)
  36. VLC_API int aout_VolumeUp( vlc_object_t *, int, audio_volume_t * );
  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_ToggleMute( vlc_object_t *, audio_volume_t * );
  40. #define aout_ToggleMute(a, b) aout_ToggleMute(VLC_OBJECT(a), b)
  41. VLC_API int aout_SetMute( vlc_object_t *, audio_volume_t *, bool );
  42. VLC_API bool aout_IsMuted( vlc_object_t * );
  43.  
  44. VLC_API void aout_EnableFilter( vlc_object_t *, const char *, bool );
  45. #define aout_EnableFilter( o, n, b ) \
  46.         aout_EnableFilter( VLC_OBJECT(o), n, b )
  47.  
  48. #endif /* _VLC_AOUT_H */
  49.