equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2016, 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 |
57 protected AudioFormat format; |
57 protected AudioFormat format; |
58 |
58 |
59 // current buffer size in bytes |
59 // current buffer size in bytes |
60 protected int bufferSize; |
60 protected int bufferSize; |
61 |
61 |
62 protected boolean running = false; |
62 private volatile boolean running; |
63 private boolean started = false; |
63 private volatile boolean started; |
64 private boolean active = false; |
64 private volatile boolean active; |
65 |
|
66 |
65 |
67 /** |
66 /** |
68 * Constructs a new AbstractLine. |
67 * Constructs a new AbstractLine. |
69 */ |
68 */ |
70 protected AbstractDataLine(DataLine.Info info, AbstractMixer mixer, Control[] controls) { |
69 protected AbstractDataLine(DataLine.Info info, AbstractMixer mixer, Control[] controls) { |