1 /* |
1 /* |
2 * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
176 void setMicrosecondPosition(long microseconds); |
176 void setMicrosecondPosition(long microseconds); |
177 |
177 |
178 /** |
178 /** |
179 * Sets the first and last sample frames that will be played in the loop. |
179 * Sets the first and last sample frames that will be played in the loop. |
180 * The ending point must be greater than or equal to the starting point, and |
180 * The ending point must be greater than or equal to the starting point, and |
181 * both must fall within the size of the loaded media. A value of 0 for |
181 * both must fall within the size of the loaded media. A value of 0 for the |
182 * the starting point means the beginning of the loaded media. Similarly, a |
182 * starting point means the beginning of the loaded media. Similarly, a |
183 * value of -1 for the ending point indicates the last frame of the media. |
183 * value of -1 for the ending point indicates the last frame of the media. |
184 * |
184 * |
185 * @param start the loop's starting position, in sample frames (zero-based) |
185 * @param start the loop's starting position, in sample frames (zero-based) |
186 * @param end the loop's ending position, in sample frames (zero-based), |
186 * @param end the loop's ending position, in sample frames (zero-based), or |
187 * or -1 to indicate the final frame |
187 * -1 to indicate the final frame |
188 * @throws IllegalArgumentException if the requested loop points cannot be |
188 * @throws IllegalArgumentException if the requested loop points cannot be |
189 * set, usually because one or both falls outside the media's |
189 * set, usually because one or both falls outside the media's |
190 * duration or because the ending point is before the starting point |
190 * duration or because the ending point is before the starting point |
191 */ |
191 */ |
192 void setLoopPoints(int start, int end); |
192 void setLoopPoints(int start, int end); |