1 /*****************************************************************************
2 * audio.hpp: audio part of the media player
3 *****************************************************************************
4 * Copyright (C) 2010 the VideoLAN team
7 * Authors: RĂ©mi Duraffort <ivoire@videolan.org>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
24 #ifndef LIBVLCPP_AUDIO_HPP
25 #define LIBVLCPP_AUDIO_HPP
27 #include <vlc/libvlc.h>
28 #include <vlc/libvlc_media.h>
29 #include <vlc/libvlc_media_player.h>
41 * @param player: the player handling the audio
43 Audio( libvlc_media_player_t *player );
55 * @return true if the sound is muted
61 * @param mute: true to mute, otherwise unmute
63 void setMute( int mute );
66 * Get the current volume
67 * @return the current volume
73 * @param volume: the new volume
75 void setVolume( int volume );
79 * Get the current track
80 * @return the current audio track
85 * Get the number of audio tracks
86 * @return the number of audio tracks
92 * @param track: the audio track
94 void setTrack( int track );
97 * Get the current audio channel
98 * @return the current audio channel
103 * Set the audio channel
104 * @param channel: the new audio channel
106 void setChannel( int channel );
108 /** trackDescription */
111 /** The media player instance of libvlc */
112 libvlc_media_player_t *m_player;
117 #endif // LIBVLCPP_AUDIO_HPP