< prev index next >
src/java.desktop/share/classes/javax/sound/sampled/AudioFormat.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 265,275 ****
* @see Encoding#PCM_UNSIGNED
* @see Encoding#ULAW
* @see Encoding#ALAW
*/
public Encoding getEncoding() {
-
return encoding;
}
/**
* Obtains the sample rate. For compressed formats, the return value is the
--- 265,274 ----
*** 286,296 ****
* {@code AudioSystem.NOT_SPECIFIED}
* @see #getFrameRate()
* @see AudioSystem#NOT_SPECIFIED
*/
public float getSampleRate() {
-
return sampleRate;
}
/**
* Obtains the size of a sample. For compressed formats, the return value is
--- 285,294 ----
*** 307,317 ****
* {@code AudioSystem.NOT_SPECIFIED}
* @see #getFrameSize()
* @see AudioSystem#NOT_SPECIFIED
*/
public int getSampleSizeInBits() {
-
return sampleSizeInBits;
}
/**
* Obtains the number of channels. When this {@code AudioFormat} is used for
--- 305,314 ----
*** 324,334 ****
* @return The number of channels (1 for mono, 2 for stereo, etc.), or
* {@code AudioSystem.NOT_SPECIFIED}
* @see AudioSystem#NOT_SPECIFIED
*/
public int getChannels() {
-
return channels;
}
/**
* Obtains the frame size in bytes. When this {@code AudioFormat} is used
--- 321,330 ----
*** 343,353 ****
* {@code AudioSystem.NOT_SPECIFIED}
* @see #getSampleSizeInBits()
* @see AudioSystem#NOT_SPECIFIED
*/
public int getFrameSize() {
-
return frameSize;
}
/**
* Obtains the frame rate in frames per second. When this
--- 339,348 ----
*** 363,373 ****
* {@code AudioSystem.NOT_SPECIFIED}
* @see #getSampleRate()
* @see AudioSystem#NOT_SPECIFIED
*/
public float getFrameRate() {
-
return frameRate;
}
/**
* Indicates whether the audio data is stored in big-endian or little-endian
--- 358,367 ----
*** 376,386 ****
*
* @return {@code true} if the data is stored in big-endian byte order,
* {@code false} if little-endian
*/
public boolean isBigEndian() {
-
return bigEndian;
}
/**
* Obtain an unmodifiable map of properties. The concept of properties is
--- 370,379 ----
< prev index next >