]> git.sesse.net Git - vlc/blobdiff - bindings/libvlcpp/src/media_player.hpp
libvlcpp: add a function to get the audio infromations from the media player.
[vlc] / bindings / libvlcpp / src / media_player.hpp
index 7a893254ff0bb8e03f9825a3abd55d83ebd328dc..1704bb63233553887bffc5146ca1e771bb489e1e 100644 (file)
@@ -30,6 +30,7 @@
 
 #include "libvlc.hpp"
 #include "media.hpp"
+#include "audio.hpp"
 
 namespace libvlc
 {
@@ -47,7 +48,7 @@ public:
      * Create a media player with a media associated
      * @param media: the associated media (the media can be safely destroy afterward)
      */
-    MediaPlayer( Media &media);
+    MediaPlayer( Media &media );
 
     /**
      * Destructor
@@ -304,9 +305,18 @@ public:
      */
     int fullscreen();
 
+    /**
+     * Get the class that handle the Audio
+     * @return the instance of Audio associated with this MediaPlayer
+     */
+    Audio &audio();
+
 private:
     /** The media player instance of libvlc */
     libvlc_media_player_t *m_player;
+
+    /** The Audio part of the media player */
+    Audio m_audio;
 };
 
 };