jvlc_audio: add missing function (get_track_count).
authorRémi Duraffort <ivoire@videolan.org>
Sun, 30 Aug 2009 09:15:33 +0000 (11:15 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Sun, 30 Aug 2009 12:11:46 +0000 (14:11 +0200)
bindings/java/core/src/main/java/org/videolan/jvlc/Audio.java

index 70a19cd..b9e5246 100644 (file)
@@ -60,7 +60,7 @@ public class Audio
      */
     public final int DOLBY_CHANNEL = 5;
 
-    
+
     public Audio(JVLC jvlc)
     {
         this.jvlc = jvlc;
@@ -72,6 +72,12 @@ public class Audio
         return jvlc.getLibvlc().libvlc_audio_get_track(mediaInstance.getInstance(), exception);
     }
 
+    public int getTrackCount(MediaPlayer mediaInstance)
+    {
+        libvlc_exception_t exception = new libvlc_exception_t();
+        return jvlc.getLibvlc().libvlc_audio_get_track_count(mediaInstance.getInstance(), exception);
+    }
+
     public void setTrack(MediaPlayer mediaInstance, int track)
     {
         libvlc_exception_t exception = new libvlc_exception_t();