< prev index next >
modules/javafx.media/src/main/java/com/sun/media/jfxmedia/track/AudioTrack.java
Print this page
rev 10044 : 8166230: use @Native annotation in graphics, media classes
Reviewed-by: kcr
*** 23,32 ****
--- 23,33 ----
* questions.
*/
package com.sun.media.jfxmedia.track;
+ import java.lang.annotation.Native;
import java.util.Locale;
import com.sun.media.jfxmedia.Media;
/**
* A class representing an audio track in a media.
*** 36,76 ****
public class AudioTrack extends Track {
/**
* Channel mask bit indicating the absence of any channel
*/
! public static final int UNKNOWN = 0;
/**
* Channel mask bit indicating the presence of a front left channel.
*/
! public static final int FRONT_LEFT = 0x01;
/**
* Channel mask bit indicating the presence of a front right channel.
*/
! public static final int FRONT_RIGHT = 0x02;
/**
* Channel mask bit indicating the presence of a front center channel.
*/
! public static final int FRONT_CENTER = 0x04;
/**
* Channel mask bit indicating the presence of a rear left channel.
*/
! public static final int REAR_LEFT = 0x08;
/**
* Channel mask bit indicating the presence of a rear right channel.
*/
! public static final int REAR_RIGHT = 0x10;
/**
* Channel mask bit indicating the presence of a rear center channel.
*/
! public static final int REAR_CENTER = 0x20;
private int numChannels;
private int channelMask;
private float encodedSampleRate;
--- 37,77 ----
public class AudioTrack extends Track {
/**
* Channel mask bit indicating the absence of any channel
*/
! @Native public static final int UNKNOWN = 0;
/**
* Channel mask bit indicating the presence of a front left channel.
*/
! @Native public static final int FRONT_LEFT = 0x01;
/**
* Channel mask bit indicating the presence of a front right channel.
*/
! @Native public static final int FRONT_RIGHT = 0x02;
/**
* Channel mask bit indicating the presence of a front center channel.
*/
! @Native public static final int FRONT_CENTER = 0x04;
/**
* Channel mask bit indicating the presence of a rear left channel.
*/
! @Native public static final int REAR_LEFT = 0x08;
/**
* Channel mask bit indicating the presence of a rear right channel.
*/
! @Native public static final int REAR_RIGHT = 0x10;
/**
* Channel mask bit indicating the presence of a rear center channel.
*/
! @Native public static final int REAR_CENTER = 0x20;
private int numChannels;
private int channelMask;
private float encodedSampleRate;
< prev index next >